grid

Divide grid (2D array) into random shaped parts?

The Problem I want to divide a grid (2D array) into random shaped parts (think earth's tectonic plates). Criteria are: User inputs grid size (program should scale because this could be very large). User inputs grid division factor (how many parts). Grid is a rectangular shaped hex grid, and is capped top and bottom, wrap around ...

How to set rowspan and colspan values on gwt Grid cell containing a widget ?

let's say I have a code like this Grid g = new Grid(2,2); Label l = new Label("Hello"); g.setWidget(0,1, l); s.setColspan(0,1,2); // there is no such method :( ...

WPF Hide Grid Column

I have a xaml grid defined as: <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="150"/> <ColumnDefinition/> </Grid.ColumnDefinitions> </Grid> The first column will contain a TextBlock and the second column a TextBox for data capture. How can I toggle the visibility of first column? ...

Scaling a Ruby on Rails site

I am developing a Ruby On Rails application and would like to deploy in a production environment. I have multiple identically configured Ubuntu web servers I can use but I don't know how to scale the RoR app and db data across multiple hosts. I'd like to put both a web server and a db server on each host. On the web server/ruby middle...

Dynamic tab generation in struts2

I need to dynamically create the tabs in struts2 using struts2-jquery-grid-plugin, like selecting from multiple select box and then dynamically getting the tabs generated in the grid. Any suggestions? Thanks. ...

What HTML tag is most appropriate for display in a Grid or Table? (with specific needs)

I'm trying to build a CSS-based table that will be populated with information coming from a database. What is the most appropriate tag to use for this structured data? I originally considered ul since each row is an unordered list of data... but then I uncovered some difficulties making it into a grid using CSS. I'm now looking at DIV...

Creating server controls dynamically at runtime inside a grid item template

Hello I've an item template inside a grid which has a <asp:LinkButton/> inside it. I assign the text for the link button as <%# Convert.ToString(Eval("Tags"))%> Tags can have a string with multiple tags in it delimited by space. For eg. "sports", "sports cricket", "sports cricket sachin" are the examples of some possible tags. I wan...

how to improve this CSS grid?

Hi all, I am kind starting to work with grid layouts for web and I am using 1kbgrid.com for my projects. It's really good and I like it. So far, I am not having any kind of issues. But I've talking with some friends and they said that grid system is "too simple" and for big websites wouldn't be good to use. As I said, so far I didn't s...

Data Grid View Cell Event Problem (Data Hidden)

Hi, I have a DataGrid View which is bound to the Binding Source. All the Cells are Read Only. The Problem that i have is when i click the cell the data is hidden, when it goes to other cell that data comes up. I am trying to figure it out what going on. Can some one help me out. ...

gridmip Vs mipch-g2

What's the differents between gridmip and mipch-g2 ...

janus grid problem

Hi, I encountered a prolbem using janus grid. i created a dropdown and bound a datasource to it. the datasource is filled with data, but when i use the dropdown it doesnt show any values. strangely, i can choose one of the hidden values and the cell text is updated fine. its looks like the values are there but for some reason i cant see...

What options are there to make a list of labelled controls in Silverlight/WPF?

I have a lot of XAML that is in a complete mess and it's usually due to one thing. GRID, Grid.Column and Grid.Row craziness!! Now theres a few common ways you can make labelled lists in XAML:. With a <Grid> Advantages: Autosizing width of columns and rows Disadvantages: No easy way to insert rows/columns either in VS or Blend [STILL!!...

Grid CSS layouts. Tell me the reasons to not use.

Hi all, Since I new with CSS, I just started to work with CSS Grid system. I would like to know if are there any technical issues in use CSS grids? I mean, which are the reasons for you to not use grid? Thanks ...

export products to csv from the admin product grid

Hi, The import products profile allows you to filter which products to export by name, sku... I want to have the same functionality in the manage products page. The admin will filter products in the grid and then click a "export" button to get the filtered products. How can I add the "export" button? what template/block do I need to ov...

add categories column to the product grid in magento admin

Hi, I'm trying to add a categories column to the product grid. I've modified Mage_Adminhtml_Block_Catalog_Product_Grid. Added the following to _prepareCollection: ->joinField('category_ids', 'catalog/category_product_index', 'category_id', 'product_id=entity_id', null, 'left')...

What's the easiest way to display NULL value as empty string instead of "null" string in an ExtJS grid?

I have a server-side script (PHP) returning JSON data to populate an ExtJS Grid. This data comes from a MySQL query, containing some NULL values. When PHP encodes it into the JSON notation, it keeps the NULL intact: {"id":"33","name":"Test1","url":null,"cls":"x-tree-noicon","expanded":true} But... when this data is displayed in the ...

Need Help Animating In A Grid

Hi Guys, i really need you guys your help. I have to do animation on a 3 X 3 grid of images. My questions are : 1) How do i construct the 3 X 3 grid with the images.? This is what i did but is not working because because i get nullpointerException in this line : rail[x][y] = new JLabel(icon); import java.awt.Component; import java....

Positioning Objects Based On Row And Column Values

Hi Guys, I have a 3 X 3 grid of JLabels of images. I constructed the grid using the grid layout. I would like to move a round object which represents a car and place that object in a particular cell. So the grid will be like a background. My questions are these: 1) How can i position this object on a specific cell based on the rows a...

WPF chessboard - how to draw in XAML

I need to draw a chessboard in WPF. I'm new in WPF and writing some working code in XAML is quite complicated for me. So far I read that I should probably use a TileBrush however I don't really know how to use it. I also read that some people draw boards using UniformGrid, however I don't know how to fill in the grid's cells in the prop...

WPF: what object to use as a multi-cell grid which coordinates can be read from?

I need to create the following WPF application: A main window with a square grid in it. The grid should have a large amount of cells in it (for example: [1000x1000]), each cell being painted black or white. A "Robot" object should be able to walk on the grid from cell to cell. I thought of using a Uniformgrid object, but I suspect th...