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

2 posts, 0 answers
  1. Pronay Sadhukhan
    Pronay Sadhukhan avatar
    1 posts
    Member since:
    Sep 2009

    Posted 07 Sep 2009 Link to this post

         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">






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




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







  2. Dimo
    Dimo avatar
    8452 posts

    Posted 08 Sep 2009 Link to this post

    Hello Pronay,

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


    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:


    Sincerely yours,
    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.
Back to Top