Hello.
Ive got two comboboxes:
-first one:
-second one:
Here is my read action signature:
How can I achieve the following:
Im putting some data to Div1 and get it under text parameter. When I put something in Div2 I will get that data under text plus data from Div1 under Barcode parameter.
I hope ive described it enough clearly.
Thanks!
Ive got two comboboxes:
-first one:
@(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)How can I achieve the following:
Im putting some data to Div1 and get it under text parameter. When I put something in Div2 I will get that data under text plus data from Div1 under Barcode parameter.
I hope ive described it enough clearly.
Thanks!