Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Jesús Sánchez on Mar 17, 2008 10:43
open dhtmlx forum
RE: SmartRendering with paging

So for my application I have to use mandatory pagination.
How can I make the page load dynamically according to the page I ask?
Now when paging is enabled, with a  large query (over 1000 entries), grid takes a long time to generate XML and shows the grid in one second (in this order). I think I have an error or missconfiguration.

Can you help me???, please!!!! My boss is trying to kill me if I dont solve this.
.
Thank you for your prompt replies.
Answer posted by Support on Mar 18, 2008 03:47
Actually, dynamic loading and paging  allows to decrease  loading and rendering time.

>> grid takes a long time to generate XML

It is possible that there are problems with your server-side code.

Please, see the following sample in your documentation  dhtmlxGrid/samples/loading_big_datasets/pro_paging_dynload.html or on our site:
http://www.dhtmlx.com/docs/products/dhtmlxGrid/samples/loading_big_datasets/pro_paging_dynload.html
It demonstrates how paging works in case of dynamic loading:

Also please, see the article "Loading data with XML" in the documentation dhtmlxGrid/doc/guide.html or http://www.dhtmlx.com/docs/products/ddhtmlxGrid/doc/guide.html

Answer posted by Jesús Sánchez on Mar 18, 2008 04:00
Thanks, you are in reason!

The problem was in generator XML file on the fly, and this is solved. So, I have another problem. I want to add a combo with values 10,20,30,100,500 for example, to offer to user the possibility to select  (directly) which amount of record are shown in the grid. How can I do this?

Thank you again.
Answer posted by Support on Mar 18, 2008 04:54
>>I want to add a combo with values 10,20,30,100,500 for example, to offer to user the possibility to select  (directly) which amount of record are shown in the grid. How can I do this?

If you init grid from js code , just set some column type as "coro" and add options by js code

grid.setColTypes("ro,ro,ed,coro")
var c=grid.getCombo(3); // 3 - index of column
c.put("10","10");
c.put("20","20");
c.put("30","30");
c.put("100","100");
c.put("500","500");