Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Raghu on Nov 21, 2008 04:58
open dhtmlx forum
Grid

Hi,
on clicking the Next set of records,Next 10 records, i wanted to call a function before loading Next group of records.
How can this be done?

There is a onBeforePageChanged event, which occurs exactly before current page in grid changed to different one.

But the problem with this is the next 10 set of records doesn't work, on clicking it,it takes me to one page before that
Answer posted by Support on Nov 21, 2008 06:34
Please be sure that custom code attached to onBeforePageChanged event returned true at the end, or it will be counted as "page change deny" command

grid.attachEvent("onBeforePageChanged",function(){
     // any custom code here
     return true; 
});