Problems with RequiredFieldValidator

4 posts, 1 answers
  1. July
    July avatar
    205 posts
    Member since:
    Jul 2011

    Posted 28 Nov 2011 Link to this post

    I have 3 tab.
    In all tabs I have RequiredFieldValidadtor.
    Steps:
    1- fill all fields of Tab1.
    When click to change Tab2 doest not work.
    If i comment RequiredFieldValidator of tab2 , is work.

    What is the problem?

  2. Answer
    Bozhidar
    Admin
    Bozhidar avatar
    1189 posts

    Posted 29 Nov 2011 Link to this post

    Hello Julieta,

    The problem is that the tabstrip checks all the validators inside the tabstrip, not only the ones in the selected tab.

    If I understand correctly, you want to allow navigation to another tab, only when the validators for the current one don't raise an error. I've attached a sample page, showing how you can do that.

    Regards,
    Bozhidar
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  3. July
    July avatar
    205 posts
    Member since:
    Jul 2011

    Posted 29 Nov 2011 Link to this post

    ohh thanks!
    I will try that
  4. July
    July avatar
    205 posts
    Member since:
    Jul 2011

    Posted 30 Nov 2011 Link to this post

    Yes!!! this  work!!!!!!!!!1
    Thankas!
Back to Top