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

    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

  2. Dimo
    Admin
    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.

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