This is a migrated thread and some comments may be shown as answers.

getKendoGrid() returns undefined after opening and closing kendoWindow

1 Answer 290 Views
Window
This is a migrated thread and some comments may be shown as answers.
Billy
Top achievements
Rank 1
Billy asked on 24 May 2013, 01:15 AM
I'm not certain if this should be posted in the Grid or Window forum, but the problem only happens when attempting to re-open a kendoWindow that has been closed.

We are trying to open a kendoWindow by double-clicking on a kendoGrid row. It works fine the first time, but after double-clicking on another row, getKendoGrid() returns undefined.

The markup for the entire page is attached. If I uncomment line 111 and comment out line 112, getKendoGrid() does not return undefined.

These are the errors I get:

Chrome 27:
Uncaught TypeError: Cannot call method 'select' of undefined

Firefox 21:
TypeError: dataGrid is undefined

IE 10:
Unhandled exception at line 110, column 5 in http://localhost/emanager/LeaseRental/UnitList
0x800a138f - JavaScript runtime error: Unable to get property 'dataItem' of undefined or null reference

1 Answer, 1 is accepted

Sort by
0
Billy
Top achievements
Rank 1
answered on 24 May 2013, 04:36 PM
The solution to this problem was to use the "iframe" option:
.refresh({ iframe: true, url: '' });
Tags
Window
Asked by
Billy
Top achievements
Rank 1
Answers by
Billy
Top achievements
Rank 1
Share this question
or