Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tejas on Sep 23, 2009 05:09
open dhtmlx forum
:: DHX Grid :: End of scroll.

Hi there,

How will I come to know that the vertical scroll bar has come to an end while scrolling the records in the grid ???
Answer posted by dhxSupport on Sep 23, 2009 08:32
Answer posted by Tejas on Oct 07, 2009 03:21
Hi there,

This just gives some numeric number but I wish to know when the scroll bar reaches its end in the bottom. How to do this ?
Answer posted by Stanislav (support) on Oct 07, 2009 04:21
mygrid.attachEvent("onScroll",function(){
   var state  = mygrid.getStateOfView();
   if (state[0]+state[1] >= state[2]) alert("at the end of a grid");

   return true;
});