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

GroupFormatString how?

2 Answers 66 Views
JumpList
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
robert
Top achievements
Rank 1
robert asked on 18 May 2011, 12:24 PM
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 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 23 May 2011, 10:09 AM
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>>
0
robert
Top achievements
Rank 1
answered on 23 May 2011, 01:19 PM
Thank you, exactly the answer I was hoping for.

/Robert
Tags
JumpList
Asked by
robert
Top achievements
Rank 1
Answers by
Deyan
Telerik team
robert
Top achievements
Rank 1
Share this question
or