Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ashok on May 20, 2008 23:27
open dhtmlx forum
How to load multiple grids in a single page?

Hi Team,

I need to load multiple grids in a single page, and each grid's number of column will set as dynamically. And this each grid column is a different column types. Number of grids,number of column in each grid and each column types, this all should be defined while screen intialize) How can I achieve all this criteria?. It should be helpful to send it with some samples.


Thanks in advance

Regards,
Ashok
Answer posted by Support on May 21, 2008 05:24
Answer posted by Tim on Sep 25, 2008 08:42

Yes, you can have two grids on the page if you hardcode everything twice. What approach would you take so you could code the init code once and just call it twice?

Something like adding on an array of grid objects on the page, keeping each grid's functions separate from each other but you only have to code it once. Probably the solution is object oriented javascript to set up an object to contain the grid and grid functions, but I havent gotten dhtmlxgrid to play nicely with it.

Tim