jQWidgets Forums
jQuery UI Widgets › Forums › TreeGrid › JQXTreeGrid with Server side custom pagination
Tagged: jqxTreeGrid, server-side pagination
This topic contains 9 replies, has 4 voices, and was last updated by ridosaputra 9 years, 4 months ago.
-
Author
-
Hi,
Do you have a JQXTreeGrid with server side custom pagination example?Thanks,
Srinath RHi Srinath,
For Load on Demand, see the TreeGrid’s Virtual Mode samples such as: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxtreegrid/javascript-tree-grid-load-on-demand.htm?arctic. No, Server Paging is not available, because it is not necessary for this widget due to the fact that Load on Demand is already supported.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comThanks Peter for the example. I have couple of test cases on the same example you shared. Please share your comment on these below.
1. What if the table has let’s say some huge number of parent elements like ‘Andrew'(as per the example), Are we going to load all
the parent elements at once when the page is being loaded?
2. If the answer to above question is Yes, then I’m sensing some performance issue.
3. If the answer is No, then how do we handle the pagination? An example would be preferred.Thanks in Advance. As we are in a stage to finalize the JQXTreeGrid component for one of our upcoming product, this information is very
crucial.PS: I’m trying to look around the JQXTreeGrid implementation and figuring out whether this is possible or not. But as of now, No luck. So
please suggest.Regards,
Srinath RHi Srinath,
Server Paging in the TreeGrid is not available. To handle paging, you can set the “pageable” property to true. You won’t have performance issue because you always load on demand only one level of an expanded sub item and with paging enabled, the widget will render only the visible part of the loaded items which are on the current page. If you wish, try it out. As you can see on our website, we have a sample which loads on demand 3000+ records and then when you expand a record, more records are loaded on demand.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comThank you very much Peter.
Hi,
For my case I need to have paging because I need to load thousands of records, and each record can contain children, that’s where I need a treegrid to load children on demand.
but the initial load can have a large number of items.
Best,
AnisHi Anis,
Loading children on demand is demonstrated – look at the Virtual Mode demos.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/Hi Peter,
Children are loaded on demand, in my case I do not have one root object, instead, my TreeGrid can have multiple rows as root rows and then clicking the arrow can load children if exists.
I can load children on demand, however if I have 10000 rows a root rows, in term of performance it’s not good. so the problems comes in the initial load.
Best,
AnisHi Anis,
We have demo with 10000+ rows so this is not a problem when Paging is enabled. The performance will be affected in the initial load only if you don’t load children on demand.
Regards,
PeterHi Peter,
I got the problem when I use method virtualModeCreateRecords, I could not reload my data from server again.
What method I must used ? -
AuthorPosts
You must be logged in to reply to this topic.