Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by swats on Mar 10, 2008 03:23
open dhtmlx forum
problem with vertical scroll on the dhtmlgrid

On scrolling vertically on the dhtmlgrid , the data of the grid gets appended to the real data.
For example , i have 50 records with serial number column starting from 1 to 50 , when i scroll
the grid for further records , after the 50th record , again the same records appear with serial number 1 to 50 .
The cycle repeats on and on when scrolling vertically.

Kindly provide me the solution.
Answer posted by Support on Mar 10, 2008 06:17
It seems that you are using xmlAutoLoading mode
    grid.setXMLAutoLoading(...
In such case each time when scrollbar will reach end of existing data, additional request to server will be sent, using url provided as part of setXMLAutoLoading command.
The url will contain "rowsLoaded" parameter, so it expected so server side script must returns any additional rows after already loaded or empty XML if no data anymore.

In you case - most probably, that you are using static xml file as parameter of setXMLAutoLoading, or used server side script generates incorrect responses.

Basically setXMLAutoLoading useful only in paging mode, you need not use them in any other scenario.