Validation Error Duration RadNumericTextBox

3 posts, 1 answers
  1. David
    David avatar
    30 posts
    Member since:
    Feb 2007

    Posted 01 Apr 2008 Link to this post

    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. Answer
    John
    John avatar
    416 posts
    Member since:
    Oct 2006

    Posted 02 Apr 2008 Link to this post

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


  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. David
    David avatar
    30 posts
    Member since:
    Feb 2007

    Posted 02 Apr 2008 Link to this post

    Worked perfectly!!!  Thanks a ton!
Back to Top