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

window issue when created from Grid detailInit

4 Answers 174 Views
Window
This is a migrated thread and some comments may be shown as answers.
Bill
Top achievements
Rank 2
Bill asked on 05 Aug 2014, 06:45 PM
Example: http://dojo.telerik.com/aSeC/2

I'm not sure if this is a bug or something I'm doing wrong.  I'm trying to create windows as part of a detail template in a grid.  The problem is that no matter how I configure things, I always get the error "Uncaught TypeError: Cannot read property 'style' of undefined ".  The first window gets loaded and behaves correctly, but since it throws the error, it prevents the second window from ever getting loaded.

Please see the example at http://dojo.telerik.com/aSeC/2

4 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 07 Aug 2014, 09:45 AM
Hello Bill,

The appendTo properties of the Kendo UI Windows are not valid CSS selectors. In addition, it seems that you want to append a parent element to its child, which is a little strange. Here is a modified example, which works better.

http://dojo.telerik.com/aSeC/3

Regards,
Dimo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Bill
Top achievements
Rank 2
answered on 07 Aug 2014, 11:11 PM
This doesn't resolve the issue of not loading the second windows content, but it did get rid of the javascript error.

How do I get content into a second window? 

http://dojo.telerik.com/aSeC/4
0
Accepted
Dimo
Telerik team
answered on 08 Aug 2014, 08:48 AM
Hi Bill,

Please initialize the Windows before the TabStrip, as the Window does not behave well when it is created inside a hidden container.

Regards,
Dimo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Bill
Top achievements
Rank 2
answered on 08 Aug 2014, 02:58 PM
Excellent, everything working as expected now and I marked your reply as answer.  
Readers can view final solution at http://dojo.telerik.com/aSeC/9

One minor thing you may want to pass to the Dev team is there is a little bug when doing this. At the bottom of the window, the pointer for 'column re-size' appears instead of the standard pointer and you cannot scroll horizontally.  Vertical scrolling is unaffected.   

Thanks again Dimo for your great work.

Tags
Window
Asked by
Bill
Top achievements
Rank 2
Answers by
Dimo
Telerik team
Bill
Top achievements
Rank 2
Share this question
or