This question is locked. New answers and comments are not allowed.
I have a Telerik TreeView that has many node models and many children assigned to each node model.
I would like to only display the first child of the first node and hide the others upon loading the treeview.
something similar to
>nodemodel
first child
does anyone can give me some hints or help on that.
Many Thanks,
I would like to only display the first child of the first node and hide the others upon loading the treeview.
something similar to
>nodemodel
first child
does anyone can give me some hints or help on that.
Many Thanks,
@(Html.Telerik().TreeView() .Name("TreeView") .BindTo(Model.ListModelName, mappings => { mappings.For<ModelName>(binding => binding .ItemDataBound((item, ModelName) => { item.Text = ModelName.Name; }) .Children(c => c.FieldEntries) ); mappings.For<OtherModel>(binding => binding .ItemDataBound((obj, OtherModel) => { obj.Text = OtherModel.Name + " : " + OtherModel.Description; }) ); }).ExpandAll(true) )