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

Remote data and Expand all nodes (without lazy loading)

1 Answer 288 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Cyril
Top achievements
Rank 1
Cyril asked on 28 Aug 2014, 08:59 AM
Hi,

I didn't manage to expand all nodes with the treeview remote data.

Is it possible ?

Many Thanks !
01.  @(Html.Kendo().TreeView()
02.       .Name("treeview2")
03.         .Checkboxes(checkboxes => checkboxes
04.              .Name("checkedFiles")
            05.         .CheckChildren(true)
06.           )
07.            .LoadOnDemand(false)
08.            .ExpandAll(true)
09.            .DataTextField("Name")
10.       .DataSource(dataSource => dataSource.Read(read => read.Action("GetAssemblies", "FrontDataSource"))))

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 29 Aug 2014, 01:20 PM
Hello Ludovic,

You can use the dataBound event of the widget in order to make sure that the data is loaded when you try to expand the nodes. Here is an example that I created:

http://dojo.telerik.com/axazU

Regards,
Kiril Nikolov
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
Cyril
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or