jQWidgets Forums

jQuery UI Widgets Forums TreeGrid Treegrid Pagging

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

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • Treegrid Pagging #81280

    ridosaputra
    Participant

    Hi team jqwidgets,

    I have billion records data for treegrid, I have created code by “virtual mode” but the editing for update proccess does not send data.
    Give me direction detail for treegrid pagging.

    Thanks
    Rido

    Treegrid Pagging #81282

    Peter Stoev
    Keymaster

    Hi Rido,

    You should implement “updateRow” function in the TreeGrid’s source object. There you should make AJAX call to send the updated data to your server. Below is a sample definition of “updateRow”.

     updateRow: function (rowID, rowData, commit) {
                         // synchronize with the server - send update command
                         // call commit with parameter true if the synchronization with the server is successful 
                         // and with parameter false if the synchronization failed.
                         commit(true);
                     }

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Treegrid Pagging #81284

    ridosaputra
    Participant

    Hi Peter Stoev,

    Thank for your response, but
    updateRow: function (rowID, rowData, commit) {
    // synchronize with the server – send update command
    // call commit with parameter true if the synchronization with the server is successful
    // and with parameter false if the synchronization failed.
    commit(true);
    }
    doesn’t work when I use virtualModeRecordCreating

    Thanks
    Rido

    Treegrid Pagging #81286

    Peter Stoev
    Keymaster

    Hi Rido,

    The method will be called if it’s defined in the adapter from which you load records. Whether it’s virtual mode or not is not important about it.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Treegrid Pagging #81301

    ridosaputra
    Participant

    Hi Peter Stoev

    I have test it, but it doesn’t work.

    Thanks
    Rido

    Treegrid Pagging #81319

    Peter Stoev
    Keymaster

    Hi Rido,

    Ok, then please send us full example in jqwidgets.com/jseditor so we can see what you do and tell you what needs to be added in your code.

    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.