RadGridView grouping by DateTime column

4 posts, 0 answers
  1. Junior Dev
    Junior Dev avatar
    2 posts
    Member since:
    Aug 2012

    Posted 07 Aug 2012 Link to this post

    Hello, 
    Sorry for my english skill, i hope you will understand


    I have RadGridView with some columns, in one of them is DateTime data. When i drag DateTime column to the GridViewGroupPanel and After dropping the selected header in the grouping area  the data in theRadGridView is grouped by DateTime:
    (01/01/2012 09:22:29 (Total 1)
    (01/01/2012 09:23:29 (Total 1) 
    ....
    (01/01/2012 09:30:29 (Total 1) 


    Question: Can i somehow change this default grouping descriptor to group these data only by Date ?


  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 08 Aug 2012 Link to this post

    Hi,

     You can bind this column only to the Date part of the DateTime. For example:

    <telerik:GridViewDataColumn DataMemberBinding="{Binding MyDateTime.Date}" ...

    Greetings,
    Vlad
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Junior Dev
    Junior Dev avatar
    2 posts
    Member since:
    Aug 2012

    Posted 08 Aug 2012 Link to this post

    Hi Vlad,
    Thanks for the answer, but i need time also in my GridViewDataColumn, but grouping without it. It is posible ?
  4. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 08 Aug 2012 Link to this post

    Hello,

     You can define CellTemplate/CellEditTemplate where you can place desired binding with full DateTime.

    Greetings,
    Vlad
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top