Globally change property of Date Picker

2 posts, 0 answers
  1. Robert
    Robert avatar
    198 posts
    Member since:
    Aug 2009

    Posted 30 Aug 2012 Link to this post

    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.
  2. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 03 Sep 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top