Hide the hour of a date in the Pivot

4 posts, 0 answers
  1. gaspray
    gaspray avatar
    2 posts
    Member since:
    May 2017

    Posted 17 May Link to this post

    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 !

  2. Martin Ivanov
    Admin
    Martin Ivanov avatar
    1475 posts

    Posted 22 May Link to this post

    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.
  3. gaspray
    gaspray avatar
    2 posts
    Member since:
    May 2017

    Posted 24 May in reply to Martin Ivanov Link to this post

    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

  4. Martin Ivanov
    Admin
    Martin Ivanov avatar
    1475 posts

    Posted 25 May Link to this post

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