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

Hide the hour of a date in the Pivot

3 Answers 18 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
gaspray
Top achievements
Rank 1
gaspray asked on 17 May 2017, 10:13 AM

Hello,

 

I'm trying to achieve quite a simple thing on the RadPivotGrid.

Some users have reported that they like to select the whole date in the RadPivotFieldList instead of selecting steps, but they would like the hour to be hidden as it's not used in our system.

 

 

The only way I found to achieve this would be to format the date in a string, but we'd loose the opportunity to use the steps.

Is there any mean to achieve this ? 

Please look at the attachement if wasn't clear enough.

Thanks !

3 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 22 May 2017, 11:39 AM
Hello Gaspard,

In order to achieve your requirement you can create a custom group description. You can see such example in the CustomDateTimeGroupDescription SDK example. I also updated the example to demonstrate how to format the date in the format dd/mm/yyyy. You can find it attached to this post.

Regards,
Martin Ivanov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
gaspray
Top achievements
Rank 1
answered on 24 May 2017, 09:27 AM

Thank you Ivanov for the promp response.

 

However, the example you provided removes the possibility to filter using the date steps, they all display the full formatted date...

Is it possible to achieve such a thing ? 

 

Regards

0
Martin Ivanov
Telerik team
answered on 25 May 2017, 08:02 AM
Hi Gaspard,

Yes, you can do that by modifying the implementation a bit. I attached a new example showing this. I hope it helps.

Regards,
Martin Ivanov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
PivotGrid
Asked by
gaspray
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
gaspray
Top achievements
Rank 1
Share this question
or