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

Globally change property of Date Picker

1 Answer 47 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 30 Aug 2012, 01:42 PM
How can I change a property on a RadDatePicker that will reflect any RadDatePicker on a given web form?

I can prototype an event such as parseDate() using: 
Telerik.Web.UI.RadDateInput.prototype.parseDate = function (value, theDate) {
    ...
}

How can I do something similar with a property such as ShowRowHeaders=false??

Basically I do not want any RadDatePicker added to a web project to have this default of True.

1 Answer, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 03 Sep 2012, 08:27 AM
Hello,

You have several options to make all pickers on the page to have given property set.

1. Use ASP skin and set the property there.
2. Wrap the Picker control in your custom/user control and use it instead of the picker in every place in your page.
3. Inherit the picker to your custom class and override the property or set the value in its constructor.
4. Use ControlAdapter to set the given property for all pickers in your page.

Greetings,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Calendar
Asked by
Robert
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Share this question
or