Hi,
Is it possible to disable the DateInput style modification inside a RadDatePicker ?
I would like to disable some fonctionnality like HoverStyle and FocusStyle.
In my case, I have a RadDatePicker with a customvalidator and a ValidatorCalloutExtender attached to it :
When the RadDatePicker is empty, I change its textbox background color :
Everything is fine until I hover or focus the textbox. In those cases, the default skin of the RadDatePicker is back.
That's why I would like to disable the hover and focus fonctionnality. Is there a way to do it ?
Thank you
Ab
Is it possible to disable the DateInput style modification inside a RadDatePicker ?
I would like to disable some fonctionnality like HoverStyle and FocusStyle.
In my case, I have a RadDatePicker with a customvalidator and a ValidatorCalloutExtender attached to it :
| <telerik:RadDatePicker ID="RadDatePicker1" runat="server"> |
| </telerik:RadDatePicker> |
| <asp:CustomValidator ID="CustomValidator1" runat="server" Text=" " ControlToValidate="RadDatePicker1" |
| ClientValidationFunction="RadDatePicker1_Validate" ValidateEmptyText="true" /> |
| <cc1:ValidatorCalloutExtender ID="ValidatorCalloutExtender7" runat="server" Enabled="True" |
| TargetControlID="CustomValidator1" HighlightCssClass="validatorCalloutHighlight"> |
| </cc1:ValidatorCalloutExtender> |
When the RadDatePicker is empty, I change its textbox background color :
| <script language="javascript" type="text/javascript"> |
| function RadDatePicker1_Validate(sender, args) |
| { |
| var picker = $find("<%= RadDatePicker1.ClientID %>").get_dateInput(); |
| var textbox = $find("<%= RadDatePicker1.ClientID %>").get_textBox(); |
| if (picker.get_value().length == 0) |
| { |
| textbox.className = "validatorCalloutHighlight"; |
| args.IsValid = false; |
| } |
| else |
| { |
| args.IsValid = true; |
| } |
| } |
| </script> |
Everything is fine until I hover or focus the textbox. In those cases, the default skin of the RadDatePicker is back.
That's why I would like to disable the hover and focus fonctionnality. Is there a way to do it ?
Thank you
Ab
