Hi,
I am using keno UI scheduler with horizontal grouping but i want it for only day view not for week view and others view.
for that i used filter option in navigate event to filter data source as shown bellow:
var scheduler = $("#scheduler").data("kendoScheduler");
if(e.view!='day' ){
var filter = {
logic:"or",
filters: [
{
operator: "eq",
field: "text",
value: 1
},
]
};
scheduler.resources[0].dataSource.filter(filter);
scheduler.view(scheduler.view().name);
scheduler.refresh();
}else {
var filter = {
logic:"or",
filters: [
{
operator: "eq",
field: "text",
value: 1
}, {
operator: "eq",
field: "text",
value: 2
}]
};
scheduler.resources[0].dataSource.filter(filter);
scheduler.view(scheduler.view().name);
}
but when i navigate from day view to other views its not working and giving java script error :
"this.groups[t.groupIndex] is undefined"
please help mi how to customize horizontal grouping and is there any way to set groups run time .
I am using keno UI scheduler with horizontal grouping but i want it for only day view not for week view and others view.
for that i used filter option in navigate event to filter data source as shown bellow:
var scheduler = $("#scheduler").data("kendoScheduler");
if(e.view!='day' ){
var filter = {
logic:"or",
filters: [
{
operator: "eq",
field: "text",
value: 1
},
]
};
scheduler.resources[0].dataSource.filter(filter);
scheduler.view(scheduler.view().name);
scheduler.refresh();
}else {
var filter = {
logic:"or",
filters: [
{
operator: "eq",
field: "text",
value: 1
}, {
operator: "eq",
field: "text",
value: 2
}]
};
scheduler.resources[0].dataSource.filter(filter);
scheduler.view(scheduler.view().name);
}
but when i navigate from day view to other views its not working and giving java script error :
"this.groups[t.groupIndex] is undefined"
please help mi how to customize horizontal grouping and is there any way to set groups run time .