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

Multiple use .k-window

2 Answers 221 Views
Window
This is a migrated thread and some comments may be shown as answers.
DDarko
Top achievements
Rank 1
DDarko asked on 21 Dec 2011, 07:21 PM
HTML:
<div class="k-window">...</div>
<div class="k-window">...</div>
<div id="popup">...</div>

JS:
$("#popup").kendoWindow().data("kendoWindow").open();


I use the class k-window to decorate my own frames.

Window opens correctly.
But when I try to close (X) get (google chrome):
Uncaught TypeError: Cannot read property 'options' of undefined

If you do not use the class k-window everything works fine.

2 Answers, 1 is accepted

Sort by
0
Jayalakshmi
Top achievements
Rank 1
answered on 08 Feb 2012, 01:42 PM
can u be a bit more clear
0
DDarko
Top achievements
Rank 1
answered on 08 Feb 2012, 01:55 PM
I do not really know what to add.
What is not clear?

On one HTML page I have a lot <div> with class "k-window", but only one perform kendoWindow(). Other uses only CSS.

In previous message I gave preview HTML and JS.
Window opens correctly (after the DOM is ready).
But when I try to close the window using the "X", the window does not close.

Chrome 16.
In the console, I receive a message / error:
Uncaught TypeError: Cannot read property 'options' of undefined
Tags
Window
Asked by
DDarko
Top achievements
Rank 1
Answers by
Jayalakshmi
Top achievements
Rank 1
DDarko
Top achievements
Rank 1
Share this question
or