Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Hari on Mar 06, 2009 11:38
open dhtmlx forum
Clear pagination information

Hi,
I have a search criteria in my form and display the results in a paginated DhtmlxGrid. When my criteria validation fails, I need to clear the grid contents and the pagination information. I can clear the grid contents using the clearAll(), but how do I clear/reset the page information?
Answer posted on Mar 09, 2009 04:40
Actually execution of grid.clearAll() must trigger update of paging section as well ( it must show actual data count, which is 0 )
If somehow it still not occurs in your case , you can try to call
           grid.clearAll();
           grid._page_skin_update();