number of rows in a grid
Posted: Wed Jan 22, 2014 6:14 pm
I would like to show the right number of rows in a grid (remove blank rows)
Ex: I have the 24 rows per page, but only 10 to show as per entered search criterias
I found 2 ways of doing it, but do not like them as much and I am wondering if there is another way I could do this.
1) add a NbOfRecords field in the header and set number number of rows in javascript on the page onload
2) add a recexist field in the grid and loop through all grid records until recexist is not true (again on the page onload event)
Is there another way I could do this?
Thanks,
Ex: I have the 24 rows per page, but only 10 to show as per entered search criterias
I found 2 ways of doing it, but do not like them as much and I am wondering if there is another way I could do this.
1) add a NbOfRecords field in the header and set number number of rows in javascript on the page onload
2) add a recexist field in the grid and loop through all grid records until recexist is not true (again on the page onload event)
Is there another way I could do this?
Thanks,