Localizing RadDatePicker

6 posts, 1 answers
  1. tjans
    tjans avatar
    27 posts
    Member since:
    Aug 2007

    Posted 30 May 2008 Link to this post

    We have a RadDatePicker control on a DNN module.   I'm logged in as a user with English as their locale, and all other Telerik controls on the module are localizing fine using meta:resourcekey="KeyName" (meaning they are picking up English text).  The DatePicker control for some reason is picking up Spanish text. There is no resourcekey set on this control. Here is the control declaration:

    <

    telerik:RadDatePicker ID="EndDatePicker" runat="server" MinDate="" Calendar-ShowRowHeaders="false">
    </telerik:RadDatePicker>



    So, I have two questions...

    1.) Where are the localization files located for the RadDatePicker?  We haven't provided any localized text for this and haven't set the resourcekey attribute, yet it's still picking this up somewhere.

    2.) What method SHOULD we be using to localize the RadDatePicker?
  2. Answer
    Steve
    Admin
    Steve avatar
    10941 posts

    Posted 03 Jun 2008 Link to this post

    Hi Travis,

    Unfortunately it is not possible to localize the RadCalendar control through resx or xml files in the current version. There are several properties exposed, which allow you to customize the text for certain buttons  - screenshot is attached. The picker would pick up the culture that is being specified for the page or in the web.config. If you want to explicitly alter the way dates are being parsed, you can use the DateFormat and DisplayDateFormat properties.

    Regards,
    Steve
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. tjans
    tjans avatar
    27 posts
    Member since:
    Aug 2007

    Posted 03 Jun 2008 Link to this post

    We figured out the issue...thank you for your response...
  5. -DJ-
    -DJ- avatar
    263 posts
    Member since:
    Oct 2004

    Posted 01 Jul 2009 Link to this post

    Hi guys,

    This works:
    <telerik:RadTimePicker TimeView-HeaderText="Tímaval"..... />

    But this doesn't:
    RadTimePicker1.TimeView.HeaderText = "Tímaval"

    Why do you think that is?

    Regards,
    -DJ-
  6. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 03 Jul 2009 Link to this post

    Hello,

    Attached to this message is a simple runnable application that demonstrates the needed approach. Please give it  a try and let me know if it works for you or if I am leaving something out.

    I hope this helps.

    Regards,
    Pavlina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  7. -DJ-
    -DJ- avatar
    263 posts
    Member since:
    Oct 2004

    Posted 03 Jul 2009 Link to this post

    Hi Pavlina

    Thanks for your help.
    My mistake was that I was only setting the headertext if a postback hadn't occurred.

    Regards,
    -DJ-
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017