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

Unable to set backcolor of radinput when using Validator Callout control of AjaxConcontrol toolkit

1 Answer 88 Views
Input
This is a migrated thread and some comments may be shown as answers.
Pronay Sadhukhan
Top achievements
Rank 1
Pronay Sadhukhan asked on 07 Sep 2009, 12:49 PM
Hi, 
     I am making a simple entry from using radtexbox,radcombobox,radmaskedtextbox and raddateinput. Now for each control there is asp.net requiredfield validator. I am also using validator Callout extender for the required field validator. Now in validator callout there is a property named as HighlighCssClass which is used to set the backcolor of the focused control. If am use simple asp.net testbox then the background-color is works fine but it's not working for any of the radinput.
I need help and complete clientside code for this.
Please help.

<

 

telerik:RadTextBox ID="txtEstbName" runat="server" MaxLength="150" Skin="Office2007" ></telerik:RadTextBox>

 

 

 

 

 

<ajaxToolkit:ValidatorCalloutExtender ID="vc1" runat="server" TargetControlID="rfv1" Width="200px" HighlightCssClass="validatorCalloutHighlight" WarningIconImageUrl="~/images/warning.png" CloseImageUrl="~/images/close.png">

 

 

</ajaxToolkit:ValidatorCalloutExtender>

 

 

<asp:RequiredFieldValidator ID="rfv1" runat="server" ErrorMessage="Please enter establishment name" ControlToValidate="txtEstbName" Visible="true" Display="None"></asp:RequiredFieldValidator>

 

 

 

css class........................

.validatorCalloutHighlight

{

background-color:#FF9999;

}

 



Pronay

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 08 Sep 2009, 11:32 AM
Hello Pronay,

This scenario is not supported out of the box. Please refer to the following forum thread for more information.

http://www.telerik.com/community/forums/aspnet-ajax/calendar/highlightcssclass-of-ajax-validatorcalloutextender-for-radtimepicker.aspx

In order to change the appearance of a RadTextBox on the client, you should modify the control's styles collection and execute the updateCssClass() method:

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


Sincerely yours,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Input
Asked by
Pronay Sadhukhan
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or