+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Validation via menu

Validation via menu

4 posts, 0 answered
  1. Shawn Davis
    Shawn Davis avatar
    81 posts
    Registered:
    13 Oct 2012
    12 Aug 2010
    Link to this post
    I have a page with a detailsview that has validation.  If the form is blank I can click the breadcrumb link to leave the page with no problem but if use the menu at the top it seems to trigger validation and it won't let me out of the page without filling in the form.  Is there a way to prevent this?

    Thanks.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    13 Aug 2010
    Link to this post
    Hello Shawn Davis,

    What kind of validation you use and which navigation control you use. Generally you should set ValidationGroup of the form or buttons that you have, so that when you click some button or link that is not part of the form this will bot trigger the validation.

    Greetings,
    Ivan Dimitrov
    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
  3. Shawn Davis
    Shawn Davis avatar
    81 posts
    Registered:
    13 Oct 2012
    13 Aug 2010
    Link to this post
    RequiredFieldValidation and the navigation control is your sitemenu.  I don't see a property for not triggering validation.  If I put a DHL control on the page it doesn't trigger the validation, just the sitemenu.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    17 Aug 2010
    Link to this post
    Hello Shawn Davis,

    I am not able to reproduce this problem as described. Make sure that you have set ControlToValidate property of the RequiredFieldValidator control.
     
    Regards,
    Ivan Dimitrov
    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
Register for webinar
4 posts, 0 answered