jQWidgets Forums

jQuery UI Widgets Forums Grid remove uid from data

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 11 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • remove uid from data #54734

    Nagoor
    Participant

    hi..

    i am passing the whole grid data to the controller in json string format. but there i can see the row data with appended “uid”. how can i get rid of this. i want only row data to send without uid.

    pls help me.

    Thanks in Advance

    remove uid from data #54781

    Dimitar
    Participant

    Hello Nagoor,

    If you are getting the data using the getrows method, you can do the following:

    $('#getRowsButton').click(function () {
        var rows = $('#jqxgrid').jqxGrid('getrows');
        for (var i = 0; i < rows.length; i++) {
            delete rows[i].uid;
        };
    });

    After the for loop has finished, the uid fields of all rows will no longer be present.

    Best Regards,
    Dimitar

    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.