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

[Solved] InputManager Not Firing On Submit

1 Answer 143 Views
Input
This is a migrated thread and some comments may be shown as answers.
Shawn
Top achievements
Rank 1
Shawn asked on 23 Feb 2010, 11:27 PM
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" /> 
                      <TargetControls> 
                          <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" /> 
                      </TargetControls> 
                  </telerik:TextBoxSetting> 
              </telerik:RadInputManager> 

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?

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 24 Feb 2010, 11:45 AM
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,
Dimo
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.
Tags
Input
Asked by
Shawn
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or