grid

Creating grid in form to represent bit data (C#, Windows Forms)

I'm experimenting with C# using Visual Studio 2010 Beta 2. What I'd like to do is display data in a similar format as Windows Defragmenter does, i.e. in a grid consisting of many small rectangular elements. These elements should be turned off and on depending on data (i.e. having different colours) and customizable in number of elements ...

ASP.Net MVC Best approach to render a results grid

Hi I'm creating a search page, the page has a form that is being submitted using Ajax, after the search is performed I want to display a grid with the results. My question is, should I create the grid when the page loads and then fill it with the data after the search is performed, or create the grid on the server when the search is pe...

WPF - DataTemplate without a container, items as rows in a Grid?

Is there an equivalent mechanism to the ItemsControl.ItemTemplate that works with a Grid? I have a collection of items and I'd like to present them as rows in a Grid so that I can assign Grid.Column to the individual elements inside the template (as opposed to rows in a list control). Is this possible in WPF using standard controls? ...

WPF Canvas and Grid overlay

I have a grid which represents some data, and i need a canvas to overlay on top of it to layout some lines. The canvas is inside it's own usercontrol The problem is that the canvas and it's contents should autoresize when the grid resizes width and height. I added the canvas inside a viewbox, but it didn't do the trick. When the grid...

WPF and canvas overlay

I have a grid which represents some data, and i need a canvas to overlay on top of it to layout some lines. The canvas is inside it's own usercontrol The problem is that the canvas and it's contents should autoresize when the grid resizes width and height. I added the canvas inside a viewbox, but it didn't do the trick. When the grid r...

Creating an Infographic In Python

I want to create a simple infographic in python. Matplotlib seems to have a lot of features but nothing that covers off my simple heatmap grid example. The infographic is a simple 5 x 5 grid with numbers inside ranging from 0 to 1. The grid squares would then be coloured in 0=white 1=blue 0.5 being a pale blue. Matplotlib could probabl...

jQuery image grid effect

I have an image sitting on a page that I want to create a grid type overlay (that covers the image with a black fill) which will be partitioned into 50x50 pixels (what ever size, tbh) squares. The squares on the grid will then flip over, one at a time, in random positions revealing the image below it. The only way I can think of accomp...

Rad Grid + jquery

I am having a rad grid on my page and a rad tab strip the rquirement is that when the user clicks on any of the row in the rad grid all the details of the particular row must be populated in the rad tab strip.My function for populating the rad tab strip is written in jquery,my problem is how to get the items in the rad grid.I had written...

null reference error in telerik Grid

I always get a null reference error ( "Object reference not set to an instance of an object.") when try to edit a row in telerik rad control in runtime. I use asp ajax version. Any help is really appreciated! ...

Why are ActualWidth and ActualHeight 0.0 in this case?

I have a Grid inside a Canvas defined like this: <Canvas x:Name="outerCanvas"> <Grid Grid.Row="1" Name="cGrid" ShowGridLines="True" Width="{Binding Path=ActualWidth, RelativeSource={RelativeSource AncestorType={x:Type Canvas}}}" Height="{Binding Path=ActualHeight, RelativeSource={RelativeSource AncestorType={x:Type Canvas}}}"> ...

Dynamic closest elements

Hi, I have a 2D surface ( Grid ) with 50 elements at different locations. I need to decide which are the 10 closest elements to a given point. In addition, the given point is constantly moving and i need to do the calculation on each movement. I know I can calculate the Euclidean distance to each point on each movement, but I want a f...

dojox.grid.DataGrid dojox.data.HtmlStore

It would be so slick if you could use dojox.grid.DataGrid and dojox.data.HtmlStore together. Maybe there is an easier way to get sortable tables with Dojo, but this is all I can come up with... and it doesn't quite work. There is a DojoCampus example of this but it does not work either! What am I missing? <html> <head> <style type="...

jquery Grid with pagination , sorting and searching

Hi All, How do I populate 2 jquery grid with pagination, sorting and searching in a single page ...

WPF SharedSizeGroup GridSplitter Issue

I wish to use a Grid for my top level layout. The Grid will have 1 column and n rows. Each row in the Grid should also contain a Grid which shall have 3 columns and 1 row. In the second column is a GridSplitter and I am trying to use a SharedSizeGroup so that this changes the size of the first column across all of the nested Grids. Here...

Matplotlib: draw grid lines behind other graph elements

In Matplotlib, I make dashed grid lines as follows: fig = pylab.figure() ax = fig.add_subplot(1,1,1) ax.yaxis.grid(color='gray', linestyle='dashed') however, I can't find out how (or even if it is possible) to make the grid lines be drawn behind other graph elements, such as bars. Changing the order of adding the grid versus addin...

How do you insert a row/column in a WPF Grid?

Anyone have any suggestions on how to insert a row or column in a WPF Grid using (preferably) Visual Studio 2008? It's no problem to add a new RowDefinition or ColumnDefinition, but I'm really not too excited about the prospect of incrementing the Grid.Row or Grid.Column for the large number of cells that are affected by the insertion. ...

Grid sorting with persistent master sort

I have a UI with a grid. Each record in the grid is sorted by a "master" sort column, let's call it a page number. Each record is a story in a magazine. I want the user to be able to drag and drop a record to a new position in the grid and automatically update the page number field to reflect the updated position. Easy enough, right?...

PBS and specify nodes to use

Hi, when you submit jobs to a PBS server, is it possible to specify the nodes that we want to use in a list? Thanks ...

get the actual machine a client got from a selenium grid

Sometimes one of the machines registered under the selenium grid gets shutdown, or something similar. Then, the grid starts reporting that it cannot start a new session. I would like, in such cases, to know which machine did the grid actually try to allocate for the session (we have ~70 machines so going through them one by one isn't pr...

WPF control-template: why specify a Grid with no ColumnDefinations/RowDefinations as the outter element?

Hi, I've been reading Programming WPF, here is one of the examples about Control Template: <Button DockPanel.Dock="Bottom" x:Name="addButton" Content="Add"> <Button.Template> <ControlTemplate TargetType="{x:Type Button}"> <Grid> <Ellipse Width="128" Height="32" Fill="Yellow" Stroke="Black" /> ...