jQuery UI Widgets Forums TreeGrid TreeGrid in Virtual mode with server side filter

This topic contains 5 replies, has 2 voices, and was last updated by  Peter Stoev 9 years, 6 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author

  • hemadri
    Participant

    Hello,

    Can somebody share a working example of TreeGrid with server side filtering..
    — For Datatable all the magic come from ‘serverProcessing: true’ but there is no equivalent of this property in TreeGrid.
    — I have also tried something like http://www.jqwidgets.com/jquery-widgets-documentation/documentation/phpintegration/php-server-side-grid-filtering.htm
    but still unable to get it working.

    Thanks and Regards
    Hemadri


    Peter Stoev
    Keymaster

    Hi Hemadri,

    The Load on demand feature loads records on demand from a server or other data source. Filtering filters the loaded records, sorting sorts the sorted records and paging pages what’s loaded. That’s it. jqxTreeGrid does not support server filters or server sorts because it is not necessary to.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com


    hemadri
    Participant

    Hello,

    I didn’t get this line mentioned in your post ‘The Load on demand feature loads records on demand from a server or other data source’…my question is how to tell which record to load or where to specify my demands ? Is it something which I am missing regarding ‘Load on demand’ feature?

    For load on demand I have just following function…which load data just once and further load the child node based on ‘expandedRecord’ parameter.

    virtualModeCreateRecords: function(expandedRecord, done){
    // expandedRecord is equal to null when the function is initially called, because there is still no record to be expanded.
    }

    Thanks and Regards
    Hemadri


    Peter Stoev
    Keymaster

    Hi Hemadri,

    The virtualModeCreateRecords is demonstrated in 2 examples. Please, follow the same approach to get desired results.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com


    hemadri
    Participant

    Thanks for replying..but scenario mention in the example is only for expended case…
    Let me try one more time to explain the issue here..

    I have lakhs of level ‘1’ rows. Instead of loading all the level ‘1’ rows initially ..I start with few of thousand in the TreeGrid once data is loaded paging,filtering all work fine..but problem is that I am stuck with only those loaded records….no way to send request to server to load next set of data..

    Thanks


    Peter Stoev
    Keymaster

    Hi Hemadri,

    The function allows you to load as many rows as you wish. There is no restriction. If you do not need load on demand, do not use it. Load on demand is helpful when someone wants to load more rows only when a row is expanded for first time.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.