jQWidgets Forums

jQuery UI Widgets Forums Grid Issue on 'deleterow'

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Issue on 'deleterow' #87195

    sydney
    Participant

    I have a grid which has a unique ID for each row passed on in the following way :

    var source = {
                datatype: "json",
                datafields: this.gridData.datafields, // Represents the name & type of data in each column
                localdata: this.gridData.jqxGridRows, // Holds the data for each row of the table
                id: this.idFieldName
            };

    When i use $('#jqxGrid').jqxGrid('getrowdatabyid', rowid);, it works absolutely fine and I get the data of the required row.

    However, if i delete a row in the following way :
    $('#jqxGrid').jqxGrid('deleterow', rowid);
    Delete works, but then ‘getrowdatabyid’ just doesn’t work and returns undefined.

    Note : i’m not utilizing the ‘deleterow’ callback of the jqxDataAdapter’s source object.

    Issue on 'deleterow' #87196

    Peter Stoev
    Keymaster

    Hi sidney,

    The deleterow is demonstrated here: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/createremoveupdatedata.htm?light. Use the same approach to get desired results.

    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.