Vertical Grouping in Kendo Ui Scheduler

4 posts, 0 answers
  1. Sudip
    Sudip avatar
    2 posts
    Member since:
    Apr 2015

    Posted 10 Apr 2015 Link to this post

    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.

  2. Alexander Popov
    Admin
    Alexander Popov avatar
    1443 posts

    Posted 14 Apr 2015 Link to this post

    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!
     
  3. Sudip
    Sudip avatar
    2 posts
    Member since:
    Apr 2015

    Posted 18 Apr 2015 in reply to Alexander Popov Link to this post

    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.

  4. Alexander Popov
    Admin
    Alexander Popov avatar
    1443 posts

    Posted 22 Apr 2015 Link to this post

    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!
     
Back to Top