jQWidgets Forums
jQuery UI Widgets › Forums › TreeGrid › Custom Pagination with Lazy loading with virtualModeCreateRecords
Tagged: treegrid lazy loading, treegrid paging
This topic contains 4 replies, has 2 voices, and was last updated by srinath4ever 11 years, 2 months ago.
-
Author
-
Hi Team,
I’m new to JQXTreeGrid and started exploring this component for a while for a new application. I have tried server side
pagination with the example shown in PHP which perfectly worked for me, Thanks for that! Now i’m trying to mix both lazy
loading for a row data with virtualModeCreateRecords function and custom pagination.In the custom pagination example, jqxGrid was used to get the pagination data with rendergridrows property. But the same
is not available for the JQXTreeGrid.Can you suggest me how can i solve this and which property/function to be used to get the data? or show me an example which has these both!?
Thanks alot,
Srinath RHi Srinath R,
virtualModeCreateRecords actually implements Lazy Loading. In addition, jqxGrid and jqxTreeGrid are different widgets. You should use virtualModeCreateRecords if you want to load data on demand.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHi Peter Stoev,
Thanks for your quick response. yes, virtualModeCreateRecords uses the Lazy Loading but as i understand that it is only for
row level data i.e when we expand or collapse the row, the data will be fetched from the server thru an Ajax call.In the same sense, I’m just wondering whether i can implement custom pagination(server side) to not to load all the pages data at once but only on click of that page number in the pagination bar for TreeGrid!?
My intention is to mix server side pagination and virtualModeCreateRecords on demand load. The data tree hierarchy must
be passed on to sub sequent pages on custom pagination!Thanks
Srinath R
Hi Srinath R,
No, you can’t load hierarchical data by changing pages. If you need lazy loading, then you should use the approach with virtualModeCreateRecords. That is the way it works and that’s the way it will load data in the future as well.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comOk, Thanks Peter Stoev.
-
AuthorPosts
You must be logged in to reply to this topic.