Grouping by Date then hours

2 posts, 1 answers
  1. Chris
    Chris avatar
    4 posts
    Member since:
    Jul 2012

    Posted 14 Jan 2013 Link to this post

    Hi

    I need a way of grouping by date then subgrouping by hours, is this currently possible with the pivot grid?

    e.g

    01/01/2001
    01 02 03 04 05

    Many Thanks

    Chris
  2. Answer
    Rosen Vladimirov
    Admin
    Rosen Vladimirov avatar
    640 posts

    Posted 14 Jan 2013 Link to this post

    Hi Chris,

    If you want to implement grouping by day you can use our DateTimeGroupDescription with Step=Day. To have hour grouping you will have to create CustomGroupDescription and override its GroupNameFromItem method. This method returns the group name where the item will be included to. We have implemented a simple solution for your case, you can find it attached and use it for your reference.

    Feel free to contact us if you have any problems or concerns.

    Greetings,
    Rosen Vladimirov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
Back to Top