Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ashok on Mar 26, 2009 09:39
open dhtmlx forum
How to get the index of a grid when multiple grids in the page?

Hi Team,

If I have multi grids in my page and i need to get the index of the each grid.

For example if i have 5 grid means,
then i need

1. how many grids inside the page

2. If possible using the gridId i should get the which index that the particular grid is in page

3. I need the grid object for the last worked grid among the five grids.

So please give me guidance to achieve this. It should be thankful, if reply with sample code


Regards,
Ashok
Answer posted by dhxSupport on Mar 27, 2009 03:24

If you have created 5 grids in the page, page will contain 5 grid on the page. Every dhtmlxGrid objects are independent from each other. There is no any one global dthmlxGrid object which could count number of grids or its indexes.