jQWidgets Forums

jQuery UI Widgets Forums Dialogs and Notifications Window Window Content Changes

Tagged: ,

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Window Content Changes #77285

    kjm
    Participant

    This is what I am trying to do:

    I have a grid displayed with employees. When an employee is clicked I popup a modal window with certain information, in addition to that I have 3 buttons on the window to load different types of grid data in the window. One div in window will contain all 3 grids. Each button retrieves different types of data and creates a different grid. Only 1 grid is visible at a time.

    The first time I hit the button to load the grid it works fine, subsequent attempts fail with: JavaScript runtime error: Unable to get property ‘length’ of undefined or null reference.

    I make sure to destroy the grid and replace the div’s in the window. But this keeps coming up. I have looked for examples but haven’t found anything.
    The code is constructed similar to the way grids work in tabs.

    So, basically, I want to be able to pop up an “employee information card” when an employee is selected in the grid. And be able to retrieve grid data once in the window.

    I could remove the buttons and have 3 tabs, but i run into the same issue the second time i popup the window.

    Any help/examples would be appreciated.

    Kevin

    Window Content Changes #77304

    ivailo
    Participant

    Hi kjm,

    destroy method destroys also the container of the grid. So if you want to use the same element about new grid instance, you have to create it dynamically.

    If this hint doesn’t help send fiddle/jseditor link with your code for better analyze of the problem.

    Best Regards,
    Ivailo Ivanov

    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.