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

RadInputManager and jQuery

5 Answers 104 Views
Input
This is a migrated thread and some comments may be shown as answers.
Hessner
Top achievements
Rank 2
Hessner asked on 15 Apr 2009, 12:37 PM
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?

5 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 21 Apr 2009, 09:29 AM
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.
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?
0
Accepted
Nikolay Rusev
Telerik team
answered on 08 May 2009, 10:32 AM
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.
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.
Tags
Input
Asked by
Hessner
Top achievements
Rank 2
Answers by
Nikolay Rusev
Telerik team
Hessner
Top achievements
Rank 2
ManniAT
Top achievements
Rank 2
Share this question
or