jQWidgets Forums

jQuery UI Widgets Forums Grid savestate / loadstate does not restore collapse / expand state of groups

This topic contains 3 replies, has 3 voices, and was last updated by  vahidsamimi 7 years, 4 months ago.

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

  • jqxfriend
    Participant

    Dear jqWidgets team

    savestate / loadstate of jqxGrid does not expand the groups as they were during savestate.
    We can easily reproduce it with your example /jqxgrid/saveloadstate.htm (from jqWidgets 4.0.0) and add “groupable: true”, then group by a column, expand some groups, click “Save State”, close the grouping, click “Load State” -> the group is restored but they are not expanded as we have had it before clicking “Save State”.

    Is it possible that this will be improved in a next version?
    Thanks in advance!
    jqxfriend


    jqxfriend
    Participant

    Just by the way: There is anyway a problem in this demo (/jqxgrid/saveloadstate.htm), if we enable grouping.
    Please do the following:
    – clear localStorage
    – reload demo, click “Save State”
    – then group by a column
    – click “Load State” -> It should clear the group because we clicked “Save State” as there was no group” but it does not!

    If we set a break point in “Load State” and observe the state object, we see in the scenario above that the state object contains the group even though it should not (it seems that group by a column will modify the saved state object…)
    But if we do a state = $.clone($("#jqxgrid").jqxGrid('savestate')); and $("#jqxgrid").jqxGrid('loadstate', $.clone(state)); to have the object not modified (if we group by a column), then, at “Load State”, a java script exception is raised from jqWidgets library…


    Peter Stoev
    Keymaster

    Hi jqxfriend,

    It’s not supposed to expand the groups and if you look they are not present in the saved state as well. This is discussed many times in the Forum. You can read old topics if you wish. You can try the feature to see if it fits to your scenario and if it fits, then use it, if it does not then do not. You can manually save/load things using the Grid control’s API.

    Best Regards,
    Peter Stoev

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


    vahidsamimi
    Participant

    Hi,

    Is there still no solution to this problem?

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

You must be logged in to reply to this topic.