This is a migrated thread and some comments may be shown as answers.

Turning grouping on and off

2 Answers 121 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Jens
Top achievements
Rank 1
Jens asked on 27 Nov 2013, 04:28 PM
Hi!
I have a basic scheduler working in MVC4. However I have a question as to how I enable or disable grouping on the fly.
I'm hoping to create a button either in the UI or as a separate javascript button that I can use to turn the resource grouping on or off.

Is this possible?
Thank you.

2 Answers, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 29 Nov 2013, 12:50 PM
Hi Jens,

Basically changing the grouping after initialization currently is not supported out of the box, however you can try to modify the "group" option of the Scheduler and refresh the current view:

scheduler = $(scheduler).data("kendoScheduler");
//remove one of the groups:
scheduler.options.group.resources.splice(0,1);
//refresh the view
scheduler.view(scheduler.view().name);
 
//add new group:
scheduler.options.group.resources.push("Rooms");
//refresh the view
scheduler.view(scheduler.view().name);

Regards,
Vladimir Iliev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Jonathan
Top achievements
Rank 1
answered on 23 Dec 2019, 08:37 PM
I was looking for a solution for this as well, and this worked perfectly.  Thanks!
Tags
Scheduler
Asked by
Jens
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Jonathan
Top achievements
Rank 1
Share this question
or