or
@
using Kendo.Mvc.UI
@
using Kendo.Mvc.UI.Fluent
@
using SpineWMS.Domain
@model
IList<SpineMenu>
@(Html.Kendo().TreeView()
.Name(
"Outline")
.BindTo(Model, (
NavigationBindingFactory<TreeViewItem> mappings) =>
{
mappings.For<
SpineMenu>(binding => binding
.ItemDataBound((item, layer) =>
{
item.Text = layer.MenuText.ToString();
}
));
}
)
)
<
li>@{this.Html.RenderPartial("~/Views/Menu/Index.cshtml");}</li>
[{"pk": 1, "model": "adr.country", "fields": {"codetxt": "RUS", "codeint": 643, "name": "\u0420\u043e\u0441\u0441\u0438\u044f"}}, {"pk": 2, "model": "adr.country", "fields": {"codetxt": "UKR", "codeint": 443, "name": "\u0423\u043a\u0440\u0430\u0438\u043d\u0430"}}, {"pk": 3, "model": "adr.country", "fields": {"codetxt": "BLR", "codeint": 523, "name": "\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u044c"}}]$("#country").kendoComboBox({ placeholder: "Выберите страну...", dataTextField: "codetxt", //not working dataValueField: "codeint ", //not working dataSource: { serverFiltering: true, type: "json", transport: { read: "http://localhost:8001/countries/" } } });