Hi,
With jQuery already built in, I am planning to use the jQuery tabs functionality.
My scenario are:
All three tabs contains two asp.net controls each.
All six controls a defined inside RadInputManager.
When I press a "submit" button and, lets say one control inside tab 1 and one control inside tab 2 fails - then I first want to
open tab 1,the user can then enter some valid data here. He will press "submit" again, and now tab 2 should open because the validation fails here.
Can this behavior be controlled clientside?
With jQuery already built in, I am planning to use the jQuery tabs functionality.
My scenario are:
All three tabs contains two asp.net controls each.
All six controls a defined inside RadInputManager.
When I press a "submit" button and, lets say one control inside tab 1 and one control inside tab 2 fails - then I first want to
open tab 1,the user can then enter some valid data here. He will press "submit" again, and now tab 2 should open because the validation fails here.
Can this behavior be controlled clientside?
5 Answers, 1 is accepted
0
Hello Hessner,
Attached to this post you will find one possible solution in this scenario.
Generally you will have to attach client function on form submit which you will check RadInputManager state. If it find control that is invalid will focus the tab that hosts this particular input.
All the best,
Nikolay
Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Attached to this post you will find one possible solution in this scenario.
Generally you will have to attach client function on form submit which you will check RadInputManager state. If it find control that is invalid will focus the tab that hosts this particular input.
All the best,
Nikolay
Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Hessner
Top achievements
Rank 2
answered on 05 May 2009, 09:19 PM
Thank you for the example - it worked out perfect!
One more question - I have two submit buttons on the page, but only one should fire the radinputmanager validations, how to disable validation pressing the secund submit button?
One more question - I have two submit buttons on the page, but only one should fire the radinputmanager validations, how to disable validation pressing the secund submit button?
0
Accepted
Hello Hessner,
Simply set CausesValidation="false" to the second button.
Thus no validation will be triggered on page submit.
Best wishes,
Nikolay
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Simply set CausesValidation="false" to the second button.
Thus no validation will be triggered on page submit.
Best wishes,
Nikolay
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Accepted
ManniAT
Top achievements
Rank 2
answered on 08 May 2009, 10:36 AM
Or you can use ValidationGroup if the second button should validate some other controls but not the input mgr.
0
Hessner
Top achievements
Rank 2
answered on 08 May 2009, 03:53 PM
You are both right, off course - thanks.