shangrilla
Programmer
I am using a dataset to populate a grid. Then using some client side javascript I decide what is the maximum # of rows that can be added to a grid.
I declare a global javascript variable 'cnt' and initialize it to 0. Say the max rows that can be added is 5. If there are no rows in the grid when it is loaded, this will work just fine. What if there are 2 rows already present in grid when it is loaded.
So my question is how can I initialize cnt to 2(rows already present in the grid before insert).
Thanks
I declare a global javascript variable 'cnt' and initialize it to 0. Say the max rows that can be added is 5. If there are no rows in the grid when it is loaded, this will work just fine. What if there are 2 rows already present in grid when it is loaded.
So my question is how can I initialize cnt to 2(rows already present in the grid before insert).
Thanks