Hi. I have a filter in place and I change it at times in js like this.
var ds = $("#scheduler").data("kendoScheduler").dataSource;
ds.filter([
{
"logic": "or",
"filters": [
{
"field": "OwnerID",
"operator": "eq",
"value": 1
},
{
"field": "OwnerID",
"operator": "eq",
"value": 2
},
{
"field": "OwnerID",
In my popup custom edit window I have a dropdown with OwnerID values 1 to 8.
I want the dropdown to show only one default value if my filter is for only 1 value.
My problem is how to read/get data from the current filter.
function filterdata() {
var scheduler = $("#scheduler").data("kendoScheduler");
var dataSource = scheduler.dataSource;
var filters = dataSource.filter();
alert(filters); // this returns the the text "Object"
return {
dept: 2
};
}
So... How can I get and check the array values of the filter object?
Thanks