jQuery UI Widgets Forums Grid JqxGrid Keeping selected rows after postback

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

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

  • chuonchuonot
    Participant

    I am working on ASP.Net webform and using jqxGrid to display data. When I select some rows on jqxGrid (selectingmode = “checkbox”) and then I click on a button which uses server side event to update data for the jqxGrid. The data will be updated but the selected rows are lost.
    Could you please tell me any solutions to solve this problem?
    Thank you very much!


    Dimitar
    Participant

    Hello chuonchuonot,

    You can store the selected row indexes in an array (on the rowselect event). When the data has been updated, the bindingcomplete event will be triggered and in its handler you can use the array to restore the selection (with the method selectrow). If you choose to implement this approach, remember to update the selection array on rowunselect, too.

    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.