GroupFormatString how?

3 posts, 0 answers
  1. robert
    robert avatar
    2 posts
    Member since:
    Apr 2011

    Posted 18 May 2011 Link to this post

    Hi telerikers !

    I'm using a JumpList with an enormous amount of alarm items.
    I want to group the alarms on time.
    My ViewModel exposes a property, MeasurementDate (a DateTime) But I only want the Date part of it in the group header.

    <telerikData:PropertyGroupDescriptor PropertyName="MeasurementDate" GroupFormatString="d"/>

    How does GroupFormatString work (my example above does not) ? I cannot find any example or useful text about it in the documentation.

    Anyone?

    Best Regards,
    Robert
  2. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 23 May 2011 Link to this post

    Hi Robert,

    Thanks for contacting us and for your question.

    The GroupFormatString property accepts strings in the format which you will normally use in the string.Format() method. In other words, to achieve the desired behavior you will have to set the GroupFormatString to {0:d} in your case.

    We are going to revisit our online help content regarding this functionality and update it if needed.

    I hope this helps.

    Do not hesitate to get back to us in case you have further questions or need assistance.

    Kind regards,
    Deyan
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  3. DevCraft banner
  4. robert
    robert avatar
    2 posts
    Member since:
    Apr 2011

    Posted 23 May 2011 Link to this post

    Thank you, exactly the answer I was hoping for.

    /Robert
Back to Top