jQWidgets Forums

jQuery UI Widgets Forums Grid Closing a jqxgrid / Panel

This topic contains 3 replies, has 2 voices, and was last updated by  Christopher 8 years, 11 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Closing a jqxgrid / Panel #86822

    walker1234
    Participant

    I am getting a jqxgrid and a jqPanel as a result of an onclick event. Is it possible to close the grid and panel? Is there a close icon functionality available in jqwidgets?

    Closing a jqxgrid / Panel #86827

    Christopher
    Participant

    Hi walker1234,

    There’s isn’t a close icon functionality for the jqxGrid or the jqxPanel. However you can use the “destroy” method to make the widgets dissapear.

    Best Regards,
    Christopher

    jQWidgets Team
    http://www.jqwidgets.com

    Closing a jqxgrid / Panel #86939

    walker1234
    Participant

    Thanks.I am wondering how would a user be able to get rid of the panel or grid to make use of the destroy method as there is no close icon? Also, once it’s destroyed, would it be possible to load it again or it would be gone forever?

    Closing a jqxgrid / Panel #86976

    Christopher
    Participant

    Hi walker1234,

    To answer your first question: “How would a user be able to get rid of the panel or grid to make use of the destroy method as there is no close icon?”.
    Anwser:
    You can accomplish that by creating a simple button outside of the panel/grid or inside it that calls the destroy() method.
    Here is an example:
    http://jsfiddle.net/jqwidgets/H5hgB/

    For your second question: “Would it be possible to load it again or it would be gone forever?”.
    Answer:
    You can initialize the widget again after it has been destroyed. For example: $(“#jqxWidget”).jqxPanel({ width: 350, height: 350});. This will initialize a new Panel with the given settings.

    Best Regards,
    Christopher

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.