jQWidgets Forums

jQuery UI Widgets Forums Grid Updatting data locally in javascript

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 12 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Updatting data locally in javascript #17100

    sdalby
    Member

    Hi

    I have a grouped grid where one or more groups are expanded. Sometimes a dialog is called which can change the size of the documents represented in the grid.

    Thus I need to update the row dynamically without reloading the datasource.

    I have tried with this but it doesnt work:

        var documentVersion = callServerSync('DocumentsWebService.asmx/GetLatestDocumentVersion', { uid: selectedTextileDocument.Uid });
    var gridLocalData = $("#jqxGridDocumentExplorer").jqxGrid('source').localdata;
    for (var i = 0; i < gridLocalData.length; i++) {
    if (gridLocalData[i].Uid == documentVersion.Uid) {
    gridLocalData[i].Size = documentVersion.Size;
    $('#jqxGridDocumentExplorer').jqxGrid('showrow', i);
    break;
    }
    }

    Can you point me in the rigth direction?

    Thanks in advance

    Updatting data locally in javascript #17103

    Peter Stoev
    Keymaster

    Hi sdalby,

    May be you are looking for “expandgroup” ?

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.