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

Validation Error Duration RadNumericTextBox

2 Answers 103 Views
Input
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 01 Apr 2008, 06:44 PM
Hello,

Is it possible to adjust the duration of the validation display on the RadNumericTextBox?  The error icon pops up so briefly that our users don't realize that a validation problem exists....is there any adjustment for this?

Thanks!

2 Answers, 1 is accepted

Sort by
0
Accepted
plamen
Top achievements
Rank 1
answered on 02 Apr 2008, 07:47 AM
Ken,

The following code example demonstrates how to adjust the duration:

    <div> 
        <script type="text/javascript"
        var duration = 500
        function RadNumericTextBox1_Error(sender, args) 
        { 
            sender.Invalid = true
            sender.UpdateCssClass();        
                  
            var instance = sender
            var restore = function() 
            { 
                instance.Invalid = false
                instance.UpdateCssClass(); 
            } 
             
            setTimeout(restore, duration);   
            return false;      
        } 
        </script> 
        <rad:RadNumericTextBox ID="RadNumericTextBox1" runat="server">   
            <ClientEvents OnError="RadNumericTextBox1_Error" /> 
        </rad:RadNumericTextBox> 
    </div> 

Best...
<John:Peel />


0
David
Top achievements
Rank 1
answered on 02 Apr 2008, 02:39 PM
Worked perfectly!!!  Thanks a ton!
Tags
Input
Asked by
David
Top achievements
Rank 1
Answers by
plamen
Top achievements
Rank 1
David
Top achievements
Rank 1
Share this question
or