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

Problems using the wrap property

2 Answers 47 Views
SPA
This is a migrated thread and some comments may be shown as answers.
mgs
Top achievements
Rank 1
mgs asked on 12 Apr 2013, 09:51 AM
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 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 16 Apr 2013, 07:20 AM
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!
0
Accepted
mgs
Top achievements
Rank 1
answered on 16 Apr 2013, 08:11 AM
Hello Petyo,

thanks a lot for the answer and the points.

Michael G. Schneider
Tags
SPA
Asked by
mgs
Top achievements
Rank 1
Answers by
Petyo
Telerik team
mgs
Top achievements
Rank 1
Share this question
or