In my Treeview I have the below line of code. That works fine and shows both AlphaId and BravoId in the markup that I can access.
But then When setting a:
That looks like this:
I can no longer access foo it is showing null.
Why are the id's no longer showing or accessable?
branch.Add().Text(childs.SomeTitle).Id(childs.AlphaId.ToString()).HtmlAttributes(new { data_foo = childs.BravoId });
.TemplateId("treeview-template")
<script id="treeview-template" type="text/kendo-ui-template">
#: item.text #
# if (!item.items) { #
<a href="/A/B/#=item.id#"><img src="@Url.Content("~/Content/Images/Image.png")" /></a>
# } #
</script>
#: item.text #
# if (!item.items) { #
<a href="/A/B/#=item.id#"><img src="@Url.Content("~/Content/Images/Image.png")" /></a>
# } #
</script>
I can no longer access foo it is showing null.
Why are the id's no longer showing or accessable?