grid

Memory Efficient implementation of corner point grids in Java3D/OpenGL

Say I have NX*NY*NZ cells in a corner-point-grid. I have also a mask of NX*NY*NZ booleans that gives me which cells of the grid I have to draw. I would like to create an efficient indexed quad array in Java3D (or OpenGL, it does not matter at the end, since the concepts below are the same) using less memory as possible. For sake of sim...

WPF: arranging collection items in a grid

Hi, I would like to arrange items of a collection in a grid with a specific number of columns and rows (say 4x6). Each item exposes the dependency properties (integer) X and Y and should be placed in the relevant cell of the grid. Note that the collection can change during runtime which should update the grid items. I couldn't find any ...

creating a Grid layer on SVG canvas

All, We could really do with some advice from SVG gurus. WHAT WE HAVE: There is a SVG canvas on which we have co-ordinates mapped (X & Y axis position of the cursor). When the user moves the cursor on the SVG canvas the co-ordinates are shown in real time on the top left of the webpage. WHAT WE WANT: We want to add a grid layer on top...

JQuery resizeable grid ontop of image

What I wish to accomplish at the client side is to show an image and let the user cut up an image into tiles of various heights while making sure that there are no gaps(vertically) and that all the pieces are of the same width(the widget of the original image). Initially the image will be cut up into a fixed(don't want to allow addition/...

Objective-c -> Isometric grid

Hi! Sorry, but i do have a question which is a little different from the norm. I want to make a game display which appears to be isometric, so every cell is: http://upload.wikimedia.org/wikipedia/commons/4/42/Rhombus_01.png in shape. I am a bit unsure how to do this effectively, though I am currently using a 2D array (M1[5][8] = {{...

Dealing with nulls for foreign keys, displaying in grid

I have to display some data (I am using teleriks grid with ajax binding) but there are problems with the data I have. For example, a lot of records have null values for the foreign keys, like as an example Let's say we have a table with a lot of foreign key references, like CategoryID, LocationID, FoodTypeID, etc etc (I am just making ...

Problems with HelloGridView tutorial from Android Developer site

Hi, i test this tutorial with the sample images they have and work's ok but when i put my own images then application crash (stopped unexpectedly) why? the only i do is to put my own images with the same name than sample images.... for example, i erase sample image "sample_0.jpg" and i put my own image from my harddisk with the same n...

how to empty the jqgrid grid after sending the data?

I have a jqgrid and after sending those grid records to server I want to empty the grid ...I am trying with reload but its not working...i am using it under complete ...but its not empty the grid grid instead it show me the same data... how can I achieve it ... ...

Using the DragDropTarget with a traditional Grid

Silverlight 4 now provides controls to handle Drag and Drop actions. All the Target Controls seem to inherit from DragDropTarget Like so public class MyControlDragDropTarget : DragDropTarget<TItemsControlType,TItemsContainerType> . . . A number of controls have pre-defined DragDropTargets including the DataGrid, ListBox, Panels Whic...

Validation of all rows of a grid

Hello I have a grid in which I show the data contained in my ViewModel. The validation is done with the IDataErrorInfo on each single row. So every time that a row is added/updated the validation is called on that row. I would like to validate all the data contained on the grid when a single row is updated because the rows are interdep...

function to traverse on a 5*5 grid in lowest no. of turns in C

I am actually doing coding for a grid solver in C. Now i have defined a function called void get_target(void){} which has to set the target_x and target_y coordinates to a value on 5*5 coordinate system. I want to traverse the grid in least possible time covering all points with minimum number of turns( only 90deg turns, 180 deg turns...

“Vertical grid” google-chrome plugin for HTML-coder.

Is there a plugin for google-chrome browser to show vertical grid (something like that): This grid is displayed in layer over the site. Settings of it - transparency, the number and width of the lines (including the use of percentages). In short, it is a tool for HTML-coder. ...

Running R jobs on a grid computing environment

I am running some large regression models in R in a grid computing environment. As far as I know, the grid just gives me more memory and faster processors, so I think this question would also apply for those who are using R on a powerful computer. The regression models I am running have lots of observations, and several factor variable...

Ext js problem setting height dynamicly of a grid when autoHeight is already set

Hello, I am trying to toggle the height off a grid when the initial setup has autoheight is true. I want to be able to toggle the height when the grid becomes bigger then the browser view. The grid is on a normal page without an ext viewport. If I try setting a height like this, then I loose the scrollbar. I can see in firebug that th...

Grid height not adjusting properly when a row height with SharedSizeGroup changes

I have two grids with three rows each. The first and last row of each grid has a fixed height while the middle rows have auto height and share their height using SharedSizeGroup. First, the content of the right grid determines the height of the size group. When the content of the right grid shrinks so that the content of the left grid d...

why i couldn't see any data in WPF Grid?

<DataTemplate x:Key="tmpGrdProducts"> <Grid> <Grid.RowDefinitions> <RowDefinition/> <RowDefinition/> <RowDefinition/> <RowDefinition/> <RowDefinition/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> ...

WPF Textbox loses original values, even if the user doesn't udpate

Hi, I am having a very strange issue. I have a datagrid which is binding to an observable collection of type Person The selected item is bind to an Object Person. I have 2 textboxes firstname and lastname. When ever user selects an item from grid, the textbox values gets populated. user can edit the values and click submit button, val...

How do i create a structured header in ALV or any other grid layout in SAP ABAP?

So to illustrate: | Category A | Category B | C | | A.A | A.B | A.A | A.B | | | A.A.A | A.A.B | A.B.A | A.B.B | B.A.A | B.A.B | B.B.A | B.B.B | | I need a header that looks somewhat like this and I was wondering if there's a way to do it other th...

Add controls to empty cells in a Grid that's the ItemsPanelTemplate for a ListView

I have a WPF ListView, which has a Grid as an ItemsPanelTemplate. I display my items in the correct column and row based on a property of the item. But I would like to put some controls in the empty cells of my grid. This is a simplified version of my code and xaml: In the resources: <ItemsPanelTemplate x:Key="TheTemplate"> <Grid>...

Dojo Grid reload data file upon button click

I know there maybe similar questions out there, but I still cannot find the answer. Much appropriate anyone who can help me. There are 5 departments, and each department has 4 products. So I created 5 buttons and 4 tabs, each tab contains a grid. By default the department A is loaded, user can switch tabs to see different products info...