Problems using the wrap property

3 posts, 1 answers
  1. mgs
    mgs avatar
    163 posts
    Member since:
    Jan 2011

    Posted 12 Apr 2013 Link to this post

    With 411...

    If the view's property "wrap" is set to false, and the view has a list of root elements, and the view contains white space between elements on the root level, calling layout.showIn will throw an exception.
    // no problems
    layout.showIn("#content", new kendo.View("<div>hey ho</div><div>hey ho</div>", { wrap: false }));
    // exception
    layout.showIn("#content", new kendo.View("<div>hey ho</div> <div>hey ho</div>", { wrap: false }));
    The exception is thrown in kendo.bind as follows.
    Uncaught TypeError: Object #<Text> has no method 'getAttribute'
    Michael G. Schneider
  2. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 16 Apr 2013 Link to this post

    Hi Michael,

    Thanks for pointing this out. The problem is actually in the MVVM implementation itself (I created a small reproduction jsbin case). We will make sure this is addressed in our next internal build release. 

    I am updating your telerik points for this finding. 

    Regards,
    Petyo
    the Telerik team
    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. Answer
    mgs
    mgs avatar
    163 posts
    Member since:
    Jan 2011

    Posted 16 Apr 2013 Link to this post

    Hello Petyo,

    thanks a lot for the answer and the points.

    Michael G. Schneider
Back to Top