window issue when created from Grid detailInit

5 posts, 1 answers
  1. Bill
    Bill avatar
    31 posts
    Member since:
    Mar 2013

    Posted 05 Aug 2014 Link to this post

    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
  2. Dimo
    Admin
    Dimo avatar
    8332 posts

    Posted 07 Aug 2014 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Bill
    Bill avatar
    31 posts
    Member since:
    Mar 2013

    Posted 07 Aug 2014 in reply to Dimo Link to this post

    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
  5. Answer
    Dimo
    Admin
    Dimo avatar
    8332 posts

    Posted 08 Aug 2014 Link to this post

    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!
     
  6. Bill
    Bill avatar
    31 posts
    Member since:
    Mar 2013

    Posted 08 Aug 2014 in reply to Dimo Link to this post

    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.

Back to Top
Kendo UI is VS 2017 Ready