jQWidgets Forums

jQuery UI Widgets Forums Grid Save grid layout in xml

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Save grid layout in xml #29365

    rajiv
    Member

    Hi

    Could you please let me know how to save the grid layout to a Xml.

    Actually I want to save grid layout as per 2 criteria –
    a. Save layout as per user.
    b. Grid state should not be saved on browser or any temporary storage ( I want , once user save layout at one machine, then if user logged in from another system or another browser these layout should be available. ).

    Could you please tell me how to implement that.

    Regards
    Rajiv Kumar

    Save grid layout in xml #29366

    Peter Stoev
    Keymaster

    Hi Rajiv Kumar,

    The Grid’s “getstate” method returns a JSON object of the Grid’s state. To save it to XML, you will need to parse that object to XML with some custom code(unfortunately, we do not have such). The “loadstate” method expects a JSON object, too and in the format returned by the “getstate” method so if you load state from XML, you will need to parse it again to JSON object before loading it in the Grid control.

    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.