jQWidgets Forums

jQuery UI Widgets Forums Grid Problem with grid autoloadstate

This topic contains 2 replies, has 2 voices, and was last updated by  Carlos Castro 11 years, 6 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Problem with grid autoloadstate #46249

    Carlos Castro
    Participant

    Hi All,

    Just wondering if this came up already.
    I have a master grid with a detail panel. So whenever i click a row on the grid, more details regarding the data of the selected row will show up in the details panel.

    When using the autosavestate and autoloadstate of jqgrid i noticed that the selected row is also saved, so whenever i return to that grid all the settings like filtering, sorting, column width is kept and also the selected row.

    Now my problem is the autoloadstate does not trigger an on row select event when selecting the saved row, so my details panel is not automatically populated with the details of the selected grid row.
    Is there any event fired after the autoloadstate that i can use to get the selected row and populate the details after the state has been restored?

    Any suggestions?

    Thanks in advance for your comments and keep up the excellent work.

    Rg,
    Carlos castro

    Problem with grid autoloadstate #46258

    Peter Stoev
    Keymaster

    Hi Carlos,

    I’m afraid that there’s no event raised after loading the Grid’s state. However, I think that the idea for such event is good and I will add a work item about that. As a suggestion, you can manually save/load the state when it’s necessary so by doing that you will know exactly when a state is loaded.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    Problem with grid autoloadstate #46780

    Carlos Castro
    Participant

    Hi Peter,

    Apologies for the late reply.
    I followed your suggestion and it solved my problem. I still use the autosavestate option but i invoke now the loadstate on the grid initialize event.
    This way i gained control on what to do after the state has been loaded.

    I appreciate that my suggestion is being considered for a future implementation.

    Many Thanks for your quick reply and help.

    Best Regards,
    Carlos Castro

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

You must be logged in to reply to this topic.