and also please let me know how to get all selected filter values on server
0
Nikolay
Telerik team
answered on 24 Aug 2020, 02:04 PM
Hello Asa,
Binding the fields DropDownList to a dynamic data is not coming out of the box. However, I could suggest updating the DropDownList data in the change event handler of the Filter, for instance:
change: function (e) {
var dropdown = $("select[data-bind='value: field']").getKendoDropDownList();
dropdown.dataSource.data(data2); // data 2 is the new data array
}
...
var data2 = [
{ text: "name", value: "name", type: "string" },
{ text: "age", value:"age", type: "number" },
{ text: "city", value:"city", type: "string" }
]
Please refer to the following Dojo for a live demo:
Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive , special prizes and more, for FREE?! Register now for DevReach 2.0(20).