JumpList GroupHeader format

2 posts, 0 answers
  1. Oleg
    Oleg avatar
    10 posts
    Member since:
    Aug 2012

    Posted 07 Dec 2012 Link to this post


    i want to format group header in this way:

    it is datetime, so regarding to http://www.telerik.com/community/forums/windows-phone/jumplist/groupformatstring-how.aspx#1655805

    i've wrote 
    public void GroupByDate(string s) {
        GenericGroupDescriptor<Program, DateTime> gd = new GenericGroupDescriptor<Program, DateTime>();
        gd.GroupFormatString = "{0:ddd MM MMM}";
        gd.KeySelector = (Program p) => {
            return p.StartTime.Date;
    I need to set this date only in en-US locale. How can i implement it?

    In case of normal datetime, i use this:
    DateTime.Now.ToUniversalTime().ToString(format, new CultureInfo("en-US"))
    Thank you!

  2. Deyan
    Deyan avatar
    2026 posts

    Posted 12 Dec 2012 Link to this post

    Hi Oleg,

    Thanks for writing and for your question.

    The format strings are always in the context of the current culture on the phone. You cannot explicitly define the culture in the format string itself.

    A possible way to implement this is to define a new property on your business object which is of type string, assign the already formatted group key to it and group by this property.

    I hope this helps.

    the Telerik team
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  3. DevCraft banner
Back to Top