jQWidgets Forums

jQuery UI Widgets Forums Grid destroy question

Tagged: ,

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • destroy question #78649

    kjm
    Participant

    I have a modal jqxWindow that displays when a grid cell is clicked (based on the information in the grid row).
    That original grid is destroyed/displayed with different data depending on a button on the main form.
    The first time the grid displays everything work great. When I destroy/re-display the main grid I never get the cellclick event.
    Do I need to re-execute the $(“#singleGrid”).on(“cellclick”, function (event) {….. after the destroy.
    i.e. is the event also destroyed when I destroy the grid?

    Kevin

    destroy question #78669

    Mariya
    Participant

    Hi Kevin,

    In order to use the destroy method again,you should rebind the cellclick event because if the jqxGrid is destroyed, all things associated with it are removed, too.

    Best Wishes,
    Mariya

    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.