PivotGrid Localization of months

5 posts, 0 answers
  1. B
    B avatar
    74 posts
    Member since:
    Jul 2011

    Posted 28 Jan Link to this post

    Hi,

    What are the keys for months localization like January, etc. and the (blank) item?

    Regards,

    Bayram

     

  2. B
    B avatar
    74 posts
    Member since:
    Jul 2011

    Posted 28 Jan Link to this post

    I managed to work around this by explictly saying:

    provider.Culture = new CultureInfo("nl-NL");

    But why is that necesary? Shouldn't it use what I specified in the App constructor: 

    System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("nl-NL");
    System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("nl-NL");

  3. DevCraft banner
  4. Kalin
    Admin
    Kalin avatar
    1209 posts

    Posted 29 Jan Link to this post

    Hi Bayram,

    The months names are coming from the system setting of current UI culture. Regarding the other keys you can check the following article from our help documentation:
    http://docs.telerik.com/devtools/silverlight/controls/radpivotgrid/features/localization

    As well as the online Silverlight example:
    http://demos.telerik.com/silverlight/#PivotGrid/Localization

    As for the empty value - this string is not localized. However you can easily change it through the EmptyValueText property of the control:
    <pivot:RadPivotGrid  x:Name="radPivotGrid" DataProvider="{StaticResource DataProvider}" EmptyValueText="-" />

    Hope this helps.

    Regards,
    Kalin
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  5. B
    B avatar
    74 posts
    Member since:
    Jul 2011

    Posted 29 Jan Link to this post

    I mean the (blank) as in row or column names for example:

    Coffee 12

    Beer 23

    Pizza 19

    (blank) 42

    How do I make the (blank) rowheader say something different?

     

  6. Kalin
    Admin
    Kalin avatar
    1209 posts

    Posted 02 Feb Link to this post

    Hello Bayram,

    You could change the text by using custom HeaderTemplateSelector. You can apply custom template with custom text whenever the value of the header is (blank).

    Hope this helps.

    Regards,
    Kalin
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
DevCraft banner