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

Localize default DateTimeWatermarkContent

7 Answers 136 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Kakone
Top achievements
Rank 1
Kakone asked on 15 Jul 2010, 10:08 AM
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.

7 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 16 Jul 2010, 01:49 PM
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
0
Kakone
Top achievements
Rank 1
answered on 19 Jul 2010, 09:23 AM
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.
0
Accepted
George
Telerik team
answered on 22 Jul 2010, 08:33 AM
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
0
LE DREAU Steeve
Top achievements
Rank 1
answered on 11 Jan 2011, 11:01 AM
Hi

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

Regards
0
Kaloyan
Telerik team
answered on 13 Jan 2011, 01:56 PM
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>>
0
LE DREAU Steeve
Top achievements
Rank 1
answered on 13 Jan 2011, 02:26 PM
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
0
Kaloyan
Telerik team
answered on 14 Jan 2011, 02:47 PM
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>>
Tags
DatePicker
Asked by
Kakone
Top achievements
Rank 1
Answers by
George
Telerik team
Kakone
Top achievements
Rank 1
LE DREAU Steeve
Top achievements
Rank 1
Kaloyan
Telerik team
Share this question
or