RadInputManager and jQuery

6 posts, 2 answers
  1. Hessner
    Hessner avatar
    189 posts
    Member since:
    Mar 2003

    Posted 15 Apr 2009 Link to this post

    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?
  2. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2284 posts

    Posted 21 Apr 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Hessner
    Hessner avatar
    189 posts
    Member since:
    Mar 2003

    Posted 05 May 2009 Link to this post

    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?
  5. Answer
    Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2284 posts

    Posted 08 May 2009 Link to this post

    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.
  6. Answer
    ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 08 May 2009 Link to this post

    Or you can use ValidationGroup if the second button should validate some other controls but not the input mgr.
  7. Hessner
    Hessner avatar
    189 posts
    Member since:
    Mar 2003

    Posted 08 May 2009 Link to this post

    You are both right, off course - thanks.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017