or
navigationMenu_selectItem(
"myPage"
);
function
navigationMenu_selectItem(id) {
$(
"#navigationMenu"
).find(
"#"
+ id).addClass(
"k-state-selected"
);
$(
"#contentPane"
).load(
"pages/"
+ id);
}
$("#selectCategory").kendoDropDownList({
dataTextField: 'Name',
dataValueField: 'Id',
dataSource: data
});
var selectCategory = $("#selectCategory").data("kendoDropDownList");
s
electCategory.dataSource.read();
selectCategory.refresh();
@(Html.Kendo().ComboBox()
.Name(
"Dim1"
)
.DataTextField(
"Barcode"
)
.DataValueField(
"Barcode"
)
.Filter(FilterType.StartsWith)
.DataSource(action => action.Read(read => read.Action(
"GetStockLocationsForComboBoxAjax"
,
"StockLocation"
)).ServerFiltering(
true
))
.MinLength(3)
)
<script type=
"text/javascript"
>
function onAdditionalData() {
return
{ Barcode: $(
"#Dim1"
).val() };
}
</script>
@(Html.Kendo().ComboBox()
.Name(
"Dim2"
)
.DataTextField(
"Barcode"
)
.DataValueField(
"Barcode"
)
.Filter(FilterType.StartsWith)
.DataSource(action => action.Read(read => read.Action(
"GetStockLocationsForComboBoxAjax"
,
"StockLocation"
).Data(
"onAdditionalData"
)).ServerFiltering(
true
))
.MinLength(3)
.CascadeFrom(
"Dim1"
)
)
[HttpGet]
public
JsonResult GetStockLocationsForComboBoxAjax([DataSourceRequest] DataSourceRequest request,
string
text,
string
Barcode)