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

No Postback immediately after client-side validation

1 Answer 90 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Nishant
Top achievements
Rank 1
Nishant asked on 15 Jul 2013, 04:45 PM
Hi,

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.


Nishant

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 18 Jul 2013, 11:21 AM
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:
http://www.telerik.com/help/aspnet-ajax/ajax-tips-and-tricks.html

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.

Regards,
Maria Ilieva
Telerik
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.
Tags
Ajax
Asked by
Nishant
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or