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

Grouping by Date then hours

1 Answer 46 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 14 Jan 2013, 02:03 PM
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

1 Answer, 1 is accepted

Sort by
0
Accepted
Rosen Vladimirov
Telerik team
answered on 14 Jan 2013, 03:01 PM
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.

Tags
PivotGrid
Asked by
Chris
Top achievements
Rank 1
Answers by
Rosen Vladimirov
Telerik team
Share this question
or