From Telerik to Kendo Treeview ItemDataBound -
I am currently changing a website, where the company wants to change everything from Teleik to Kendo.
And I have now gone into some difficulties. There may be some mapping in the But there are no attribute BindTo method, and
.emdatabound . And in it, you can set a
value Here is a complete example:.
@ (Html.Kendo () TreeView () .Name ("MenuTree") .Checkboxes (correct) .ExpandAll (true) .DragAndDrop (Incorrect). Events (Events = & gt; events.Select ("onChecked"). BindTo (enumNames, Mapping = & gt; {mappings.For & lt; string & gt; (binding = & gt; binding.ItemDataBound ((item, menuGroup) = & gt; { Item .text = this.GlobalResource ("EnergyLine", menuGroup); MenuGroup Result; Enum.TryParse (menuGroup, true, outside results); item.Value = ((int) result) .toString (CultureInfo.InvariantCulture); ..
value in the keyndo. What is the related attribute for the condo?
item.id to
item.Value instead of> in.
Comments
Post a Comment