This question is locked. New answers and comments are not allowed.
hello, i cannot get my tree to display the children of each item (and their children, etc).
I got my template to work by using INlineTemplate, but doing that now causes my tree to no longer show the full hierarchy....again, if i remove the
The
What am i doing wrong?
thanks
TS
I got my template to work by using INlineTemplate, but doing that now causes my tree to no longer show the full hierarchy....again, if i remove the
currentItem.Template.InlineTemplate, the whole tree is shown correctly.The
ChildTaxonomyNodes collection is the same type as the parent, so i dont think i need any more mappingsWhat am i doing wrong?
thanks
TS
@( Html.Telerik().TreeView() .Name(Model.TreeName) .BindTo(Model.DataSource, mappings => { mappings.For<Dell.Commerce.Web.ClientApi.SystemCatalog.TaxonomyNodeItem>(binding => binding .ItemDataBound((currentItem, navigationItem) => { currentItem.Text = navigationItem.DisplayName; currentItem.Value = navigationItem.Id.ToString(); currentItem.Expanded = true; //currentItem.Content = () => { Html.TextBoxFor(y => y.DisplayName, new { Style = "display:none;" }); }; currentItem.Template.InlineTemplate = @<text> @Html.TextBoxFor(y => y.DisplayName, new { Style = "display:block;" }) </text>; }) .Children(nodeItem => nodeItem.ChildTaxonomyNodes)); }) .ExpandAll(true) .DragAndDrop(true))