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