No Postback immediately after client-side validation

2 posts, 0 answers
  1. Nishant
    Nishant avatar
    33 posts
    Member since:
    Jul 2012

    Posted 15 Jul 2013 Link to this post


    I'm using a combination of RadTabStrip and RadPageView and have several RadTextBox, RadComboBoxes and RadButtons in those RadPageViews, and some of those use the RequiredFieldValidatior, RegularExpressionValidator etc. for client-side validation.

    The AutoPostBack and CausesValidation properties of the TabStrip is set to 'True' so that whenever the user clicks on a Tab, the validation is fired for the current tab. Also, the TabStrip and PageView are ajaxified using the RadAjaxManagerProxy.

    The scenario is : 
    - User clicks on the 2nd tab, or any control that causes validation after filling up the details in the first tab.
    - A few controls fail validation and the error messages are shown in the ValidationSummary.
    - Now, all controls on this tab, that cause postback, do not cause postback on the first attempt. e.g. if the user clicks a RadButton that causes postback, the button now needs to be clicked twice to work. Similarly, if there is a RadCombobox that causes postback, the user needs to make 2 selections in the combobox to have the postback occur.

    Why does this happen ? I'm clueless ! Please help me resolve it.

  2. Maria Ilieva
    Maria Ilieva avatar
    4017 posts

    Posted 18 Jul 2013 Link to this post

    Hello Nishant,

    Could you please disable the ajax on the page and verify if the same behavior could be replicated? Also please makes sure that when the page is ajaxified you are following the instructions provided in the help topic below for correct configuration of the ajax with RadTabStrip/RadMultiPage controls:

    If this does not help please provide your full page markup as well as the related code behind so that we could further research on your scenario and o our best top provide a proper solution.

    Maria Ilieva
    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 the blog feed now.
Back to Top