Localize default DateTimeWatermarkContent

8 posts, 1 answers
  1. Kakone
    Kakone avatar
    65 posts
    Member since:
    Jan 2010

    Posted 15 Jul 2010 Link to this post

    Hello,

    I would like to localize the default watermark content ("Enter date") of the RadDateTimePicker control. I didn't find it in resources files (I use Q2 2010 librairies).
    Is it an oversight or am I missing something ?

    Cordially,
    Stephane.
  2. George
    Admin
    George avatar
    1332 posts

    Posted 16 Jul 2010 Link to this post

    Hi Kakone,

    Thank you for contacting us.

    You could use LocalizationManager class to load resources. You need to create your own resource file and get the value from there and set it to DateTimeWatermarkContent property.
    Attached you can find a sample project I made for you.

    I hope this helps. I will be glad to assist you further.

    Kind regards,
    George
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Kakone
    Kakone avatar
    65 posts
    Member since:
    Jan 2010

    Posted 19 Jul 2010 Link to this post

    Hello,

    I know I can set the DateTimeWatermarkContent property but I want to localize your default watermark content. I don't want to set the DateTimeWatermarkContent property for each RadDateTimePicker instance in my application. So, I created a subclass of the RadDateTimePicker class like this :
    public class MyDateTimePicker : RadDateTimePicker
    {
      public DateTimePicker()
      {
        DateTimeWatermarkContent = MyResources.DateTimeWatermarkContent;
      }
    }

    It would be nice if I could do this without implement a subclass. To localize the rest of your controls, I created my own resource file and I set the DefaultResourceManager like this :
    LocalizationManager.DefaultResourceManager = MyResources.ResourceManager;
    It's perfect for me. So, generally, I think it would be nice if we could localize easily all the texts in your controls (including the default texts - I have the same problem with the BusyContent default value on the BusyIndicator control for example). Could you put the default watermarkcontent property value in your resource file instead of hardcode it ?

    Cordially,
    Stephane.
  5. Answer
    George
    Admin
    George avatar
    1332 posts

    Posted 22 Jul 2010 Link to this post

    Hello Kakone,

    Thank you for suggesting this feature, it helps us in improving our products. We will consider your request and we will implement it in one of our future releases.

    Please do not hesitate to contact us if you require any further information.

     

    Regards,
    George
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  6. LE DREAU Steeve
    LE DREAU Steeve avatar
    74 posts
    Member since:
    Aug 2012

    Posted 11 Jan 2011 Link to this post

    Hi

    Is there any way to localize RadDatePicker globally like Kakone asked few months ago ?
    Thanks

    Regards
  7. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 13 Jan 2011 Link to this post

    Hello Kakone,

    Follow the attached example.

    Greetings,
    Kaloyan
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  8. LE DREAU Steeve
    LE DREAU Steeve avatar
    74 posts
    Member since:
    Aug 2012

    Posted 13 Jan 2011 Link to this post

    Hi,

    Thanks for your reply but I've already tried to reproduce your example in VB.Net but never make it work.
    Can you please provide a VB.Net sample please ?
    Thanks

    Regards
  9. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 14 Jan 2011 Link to this post

    Hi Kakone,

    I have converted the project for you. Find the attached project.

    Greetings,
    Kaloyan
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Back to Top
DevCraft banner