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

how to Hightlight RadNumericTextbox

4 Answers 127 Views
Input
This is a migrated thread and some comments may be shown as answers.
lakshmi
Top achievements
Rank 1
lakshmi asked on 07 Jun 2008, 04:39 AM
Hi,

Am having 10 RadNumericTextBox to get 10 values am doing the validation on a button _click. When i click on the button it successfully finish the validation and highlights the very first error control and when i move the cursor to the next error value in the RadNumericTextBox was highlighted.

Is there any possibility to show the InvalidStyle-CssClass=classname"?

Dhana

4 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 09 Jun 2008, 03:18 PM
Hello lakshmi,

I'm not able to completely understand your request. If you are trying to apply error style for the RadNumericTextBox on ButtonClick event you could use the following approach:

<head runat="server"
    <title>Untitled Page</title> 
 
    <script language="javascript" type="text/javascript"
<!-- 
 
function Button1_onclick()  
    var eventArgs = new Telerik.Web.UI.InputErrorEventArgs( 
                                    null, 
                                    null, 
                                    null, 
                                    null); 
                                     
    $find("RadNumericTextBox1").raise_error(eventArgs); 
 
// --> 
    </script> 
 
</head> 
<body> 
    <form id="form1" runat="server"
        <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
        <div> 
            <telerik:RadNumericTextBox InvalidStyleDuration="3000" ID="RadNumericTextBox1" runat="server"
            </telerik:RadNumericTextBox><input id="Button1" type="button" value="button" language="javascript" 
                onclick="return Button1_onclick()" /> 
        </div> 
    </form> 
</body> 

If this is not the required functionality please provide more results on your scenario and the functionality you need to achieve.

Greetings,
Maria Ilieva
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Roman
Top achievements
Rank 1
answered on 26 Jun 2008, 02:24 PM

Hi.

I have tried to do so... but i got javascript exception:

Telerik.Web.UI is null or not an object.

Could you please explain what should i do ?

0
Shinu
Top achievements
Rank 2
answered on 01 Jul 2008, 12:20 PM
Hi Roman,

I have found a forum link which discuss a similar error. Go through it and see whether it is helpful.
Telerik.Web.UI.RadToolTipController is null or not an object

Shinu.
0
Roman
Top achievements
Rank 1
answered on 03 Jul 2008, 02:22 PM
Thanks for the reply, Shinu.
But seems there is no any control like radtooltipmanager for RadInput.
I think the main reason is coz im using old rad libraries and there is no Telerik.Web.UI namespace.

If that's correct and I should get the last ddl's, let me know.

Roman.
Tags
Input
Asked by
lakshmi
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Roman
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or