or
$("#creatorSelect").kendoPanelBar({ dataSource: { type: 'json', transport: { read: './menu.JSON' } }});[{ "text":"File Types", "items":[ { "text":"<input type='checkbox' value='fileType'> JPG</input>", "encoded":false }, { "text":"<input type='checkbox' value='fileType'> CADRG</input>", "encoded":false } ]}] $("#creatorSelect").kendoPanelBar({ dataSource:[{ text:"File Types", items:[ { text:"<input type='checkbox' value='type'> JPG</input>", encoded:false }, { text:"<input type='checkbox' value='type'> CADRG</input>", encoded:false } ]}]);
public class ComboBoxViewModel{ public string MyProperty1 { get; set; } public string MyProperty2 { get; set; } public Product Product { get; set; } public int ProductID { get; set; }} <div class="form-group"> @Html.LabelFor(model => model.ProductID, new { @class = "control-label col-md-2" }) <div class="col-md-10"> @(Html.Kendo().ComboBoxFor(model => model.ProductID).CascadeFrom(Html.IdFor(model => model.Product.Category).ToString()) .Placeholder("Select state or province...") .DataTextField("ProductName") .DataValueField("ProductID") .Filter(FilterType.Contains) .DataSource(source => { source.Read(read => { read.Action("GetCascadeProducts", "ComboBox") .Data("filterProducts"); }).ServerFiltering(true); ; }) .AutoBind(false) .HighlightFirst(true) .Enable(false) ) @Html.ValidationMessageFor(model => model.ProductID) <script> function filterProducts() { return { categories: $("#@Html.IdFor(model => model.Product.Category.CategoryID).ToString()").val(), productFilter: $("#@Html.IdFor(model => model.ProductID)").data("kendoComboBox").input.val() }; } </script> </div> </div><div class="form-group"> @Html.LabelFor(model => model.Product.Category, new { @class = "control-label col-md-2" }) <div class="col-md-10"> @(Html.Kendo().ComboBoxFor(model => model.Product.Category.CategoryID) .Name(Html.NameFor(model => model.Product.Category).ToString()) .Placeholder("Select category ...") .DataTextField("CategoryName") .DataValueField("CategoryID") .Filter(FilterType.Contains) .DataSource(source => { source.Read(read => { read.Action("GetCascadeCategories", "ComboBox").Type(HttpVerbs.Post); }); }) ) </div> </div><script> function filterProducts() { return { categories: $("#@Html.IdFor(model => model.Product.Category.CategoryID).ToString()").val(), productFilter: $("#@Html.IdFor(model => model.ProductID)").data("kendoComboBox").input.val() }; }</script>