hi,
because our team still relies on the traditional web service (ASMX) to get data. can anyone kindly advise how to integrate the cascading combo with ASMX service?
my code doesn't seem to work, found many 'undefined' in the dropdown list.
Thanks in advance!
because our team still relies on the traditional web service (ASMX) to get data. can anyone kindly advise how to integrate the cascading combo with ASMX service?
my code doesn't seem to work, found many 'undefined' in the dropdown list.
View
var categories = $("#cmbWidgetCat1").kendoComboBox({
dataTextField: "Display",
dataValueField: "Value",
dataSource: {
type: "json",
transport: {
read: wsPath + "/GetTabItems"
}
}
}).data("kendoComboBox");
ASMX
[WebMethod(EnableSession = true)]
[ScriptMethod(ResponseFormat = ResponseFormat.Json, UseHttpGet = true)]
public WidgetComboItem[] GetTabItems()
{
return new List<
WidgetComboItem
>
{
new WidgetComboItem {Display = "System Info", Value = "1"},
new WidgetComboItem {Display = "Datasets", Value = "2"},
new WidgetComboItem {Display = "Charts", Value = "3"},
}.ToArray();
}
Thanks in advance!