Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by BAPU SHINDE on Nov 13, 2008 23:20
open dhtmlx forum
how start Position get from GRID in Dynamic loading and smart rendering,

Hi,
I am loading grid dynamically using smart rendering, so on vertical scroll click how can i get start row position.
and how can i change my server requesting URL.

Thanks,
BAPU.
Answer posted by Support on Nov 14, 2008 01:46
In any moment of time you can call 
      var state = grid.getStateOfView();
      state[0] - current top row
There is an onScroll event, so you can catch the moment when scroll state of grid was changed. 

Also, there is onDynXLS event, it occurs when grid request new data from server.
mygrid.attachEvent("onDynXLS",function(pos,count){
     mygrid.loadXML(any custom server side url here);
     return false;
})