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

Vertical Grouping in Kendo Ui Scheduler

3 Answers 127 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Sudip
Top achievements
Rank 1
Sudip asked on 10 Apr 2015, 08:11 AM

I am testing the scheduler code for hotel room booking

my json data :

[{"ID":1,"RoomNo":"1001","RoomType":"Double Bed Room"},{"ID":2,"RoomNo":"1002","RoomType":"Double Bed Room"},{"ID":3,"RoomNo":"1003","RoomType":"Double Bed Room"},{"ID":4,"RoomNo":"1004","RoomType":"Double Bed Room"},{"ID":5,"RoomNo":"1005","RoomType":"Double Bed Room"},{"ID":6,"RoomNo":"1006","RoomType":"Single Bed Room"},{"ID":7,"RoomNo":"1007","RoomType":"Single Bed Room"},{"ID":8,"RoomNo":"1008","RoomType":"Single Bed Room"},{"ID":9,"RoomNo":"1009","RoomType":"Single Bed Room"},{"ID":10,"RoomNo":"1010","RoomType":"Single Bed Room"}]

I want to show group by roomtype i.e., data in my scheduler will be like :

                                      April 1     April 2       April 3

Double Bed Room

              1001

              1002

Single Bed Room

              1006

              1007

 

how will I group it in the datasource using resources.

3 Answers, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 14 Apr 2015, 08:14 AM
Hi Sudip,

You'd need to specify the RoomNo and RoomType resources and the grouping options. I would recommend checking this example, which illustrates similar scenario.

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Sudip
Top achievements
Rank 1
answered on 18 Apr 2015, 09:06 AM

Hello Sir,

If you see my testing project which I have attached with my 1st post you will see that I have already applied it but it is showing in the way I want to do, the example link given by you has repetation of the attendees in the 2nd column after room no but in my case the roomno will not repeat as one room cannot be present in 2 different roomtypes, so please look through my project once and guide me if possible.

0
Alexander Popov
Telerik team
answered on 22 Apr 2015, 07:12 AM
Hi Sudip,

I am afraid cascading the resources is not supported, so either the room type or the room number will be displayed twice, depending on which is the first grouping option.

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Scheduler
Asked by
Sudip
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Sudip
Top achievements
Rank 1
Share this question
or