Change font style of date picker on Enabled =false condition

2 posts, 0 answers
  1. Jignesh
    Jignesh avatar
    44 posts
    Member since:
    Jan 2007

    Posted 23 Apr 2010 Link to this post

    Hello Friends,


     In my page i used datepicker control,in one condition i applied Enabled=false on that date picker.

    But when datepicker is Enabled=false than i need to apply style on font means i need to do font bold and change font color.

    I had tried it but when Enabled=false than font style are not working.

    Pls help me.

    Thanks & Regards
    Jignesh Patel

  2. Dimo
    Admin
    Dimo avatar
    8472 posts

    Posted 23 Apr 2010 Link to this post

    Hello Jignesh,

    IE does not allow changing text color of disabled elements.

    You can set a bold font style like this:

    <telerik:RadDatePicker ID="RadDatePicker1" runat="server" Enabled="false" SelectedDate="2010/01/02">
        <DateInput EnabledStyle-Font-Bold="true" />
    </telerik:RadDatePicker>

    Please refer to the relevant documentation:

    http://www.telerik.com/help/aspnet-ajax/input_appearancestyles.html

    (if you want to set styles with CSS)
    http://www.telerik.com/help/aspnet-ajax/input_appearancecssselectors.html


    Regards,
    Dimo
    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.
Back to Top