Hi,
I'm trying to change the datasource value on change api of the dropdownlist.
Anyone have suggestion?
Code:
$(
"#ddllanguage"
).kendoDropDownList({
...
change: DropdownChange
});
var
dropdownlist = $(
"#ddllanguage"
).data(
"kendoDropDownList"
);
function
DropdownChange() {
$(
"#technicalspecs"
).data(
"kendoListView"
).dataSource.read();
// RELOAD DATASOURCE ON KENDOLISTVIEW
};
var
dataSourcetechnical =
new
kendo.data.DataSource({
transport: {
read: {
url:
"/api/someurl"
,
data: { languageid: dropdownlist.value() },
//HOW TO CHANGE THIS VALUE ON CHANGE EVENT
dataType:
"json"
}
}
});