InputManager Not Firing On Submit

2 posts, 1 answers
  1. Shawn
    Shawn avatar
    83 posts
    Member since:
    Jan 2009

    Posted 23 Feb 2010 Link to this post

    I am using an InputManager for my text boxes like so:

    <telerik:RadInputManager ID="RadInputManager1" runat="server" Skin="Windows7"
                      <telerik:TextBoxSetting ErrorMessage="Required!"
                          <Validation IsRequired="true" ValidationGroup="Primary" /> 
                              <telerik:TargetInput ControlID="txt_FirstName" /> 
                              <telerik:TargetInput ControlID="txt_LastName" /> 
                              <telerik:TargetInput ControlID="txt_Address" /> 
                              <telerik:TargetInput ControlID="txt_City" /> 
                              <telerik:TargetInput ControlID="txt_ZipCode" /> 

    This only works when I click on the text box, and then click out of it again (blur).  It does not validate when my asp:Button is clicked. I even attempted to set the buttons commandName to "Submit", even though UseSubmitBehavior is set to true.

    Also, ValidateOnEvent="All".  Any idea why this isn't firing?
  2. Answer
    Dimo avatar
    8485 posts

    Posted 24 Feb 2010 Link to this post

    Hi Shawn,

    If you are using a ValidationGroup for the RadInputManager validation, you must also have it for the asp:Button.

    <Validation IsRequired="true" ValidationGroup="Primary" />

    All the best,
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top