jQWidgets Forums

jQuery UI Widgets Forums Grid Source Refresh

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Source Refresh #10894

    UJanke
    Member

    I use you Grid together with ASP. The users are able to add new Rows into the Grid. After saving to SQL-Server i use:

    $(“#pakagegrid”).jqxGrid(‘updatebounddata’);
    $(‘#pakagegrid’).jqxGrid(‘gotopage’, 1);
    $(‘#pakagegrid’).jqxGrid(‘selectrow’,0);

    so far so good all works as expected and very well. The problem at this point:

    $(“#pakagegrid”).bind(‘rowselect’, function (event) {
    var args = event.args;
    var row = args.rowindex;

    if (args.row != null)
    {
    setpackagedata(args.rowindex);

    }

    }); // end rowselect

    The rowselect shows the user additional data. But it seems that:

    $(‘#pakagegrid’).jqxGrid(‘selectrow’,0);

    don’t fire the rowselect. So the selected row and the shown Data is different. Any ideas for an work around?

    Best Regards,
    U.Janke

    Source Refresh #10924

    Peter Stoev
    Keymaster

    Hi U.Janke,

    If the selected row’s index is already 0, the ‘rowselect’ event will not be raised. If you want the event to be always raised, call the ‘clearselection’ before calling selectrow.

    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.