RadTextBox + RadInputManager

9 posts, 0 answers
  1. Michael
    Michael avatar
    23 posts
    Member since:
    Jan 2012

    Posted 06 Jan 2012 Link to this post

    Hello, 

    I am able to use RadInputManager to validate required textbox controls, but it does not work with radtextbox controls. If a RadTextBox is left empty I would like a message to appear in the box with the exclamation mark. 

    Is there any way to get this to work? I assumed the RadTextBox was a child of TextBox, but this may be false as this only works on a TextBox. 

    This works on a textbox, but not a radtextbox :

     <telerik:RadInputManager ID="RadInputManager1" runat="server">
    <telerik:TextBoxSetting ErrorMessage="Required">
          <Validation IsRequired="true"  />
               <TargetControls>
                <telerik:TargetInput ControlID="TextBox1" />
               </TargetControls>
         </telerik:TextBoxSetting>
        </telerik:RadInputManager>

    Please advise 
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 09 Jan 2012 Link to this post

    Hello,

    The problem in this situation is that you should not have a RadInputManager when you use RadTextBox. RadInputManager would be used to extend a standard ASP.NET TextBox.Take a look into this documentation for more.

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Andrey
    Admin
    Andrey avatar
    836 posts

    Posted 09 Jan 2012 Link to this post

    Hello Michael,

    As explained by Princy and in this help topic, RadInputManager is used to extend the default ASP.NET TextBox control and to save you a lot of custom written code.

    For more information on how to use Validation with RadTextBox you could check this help topic and this online demo.

    Regards,
    Andrey
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  5. Dave
    Dave avatar
    5 posts
    Member since:
    Aug 2010

    Posted 09 Jan 2012 Link to this post

     -
  6. Michael
    Michael avatar
    23 posts
    Member since:
    Jan 2012

    Posted 09 Jan 2012 Link to this post

    Hello, 

    Yes I have seen that demo, but using RequiredFieldValidator is not as graceful as using the RadInputManager. 

    As an example. how to I achieve the exclamation mark in an invalid RadTextBox similar to the one in a TextBox using RadInputManager?

    Also placing all of my validation in one RadInputControl is much better than having RequiredFieldValidator controls scattered across the page. 

    I would like to make a feature request for the future, if RadInputManager could be used to validate RadTextBox controls that would be very helpful. 

    - Michael
  7. Andrey
    Admin
    Andrey avatar
    836 posts

    Posted 10 Jan 2012 Link to this post

    Hi Michael,

    If you don't like using RequiredFieldValidators to limit the input of RadTextBox, you could hook the OnError client event of RadTextBox and in its body to perform the required validation. More information about the event could be found in this help topic.

    Additionally I will forward you request to our developer team for consideration.

    Regards,
    Andrey
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  8. Merritt
    Merritt avatar
    28 posts
    Member since:
    Mar 2011

    Posted 02 Mar 2012 Link to this post

    I second the request, and furthermore move to upgrade the status of this from a "possible improvement" to "missing functionality". If you want us to play with your toys, boys, make sure your toys play with themselves.
  9. Andrey
    Admin
    Andrey avatar
    836 posts

    Posted 05 Mar 2012 Link to this post

    Hello,

    We understand your concerns and we logged this request for consideration. However, I could not give you an estimation when this feature will be implemented. We will announce this feature in the release notes of the first release that will include it.

    Greetings,
    Andrey
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  10. Yuvraj
    Yuvraj avatar
    1 posts
    Member since:
    Apr 2012

    Posted 27 Apr 2012 Link to this post

     <asp:TextBox ID="TextBox11" runat="server" /> 
     <telerik:RadInputManager ID="RadInputManager1" runat="server"> 
    <telerik:RegExpTextBoxSetting BehaviorID="RagExpBehavior2" ErrorMessage="Enter Social Security Number here"
                Validation-IsRequired="true" ValidationExpression="\d{3}-\d{2}-\d{4}">
                <TargetControls>
                    <telerik:TargetInput ControlID="TextBox11" />
                </TargetControls>
            </telerik:RegExpTextBoxSetting> 
     </telerik:RadInputManager> 


    I Hope this Help U




Back to Top
UI for ASP.NET Ajax is Ready for VS 2017