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

TreeView child items not shown

1 Answer 22 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Zoltan
Top achievements
Rank 1
Zoltan asked on 03 Dec 2013, 01:33 PM
Hi,

I'm using version 2013.3.1119 to create a basic TreeView. Please refer to http://jsfiddle.net/fDrvP/

I've tried running this fiddle in Chrome 31/Firefox 25/IE 9 on Windows 7 with the same result.

When I try expanding Item 3 (clicking the arrow or double clicking the text), no child items are shown. If I inspect the li element, I can see some attributes changing to expanded="true" but no child items appended.

Is there something I've overlooked?

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 04 Dec 2013, 08:29 AM
Hello Zoltan,

The problem lies in the HTML that the editor is created from -- when creating a TreeView from a <ul>, the list items are inferred and the datasource ends up in a weird state. The resolution here is to change the tag from <ul> to <div>.

Regards,
Alex Gyoshev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
TreeView
Asked by
Zoltan
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or