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

ajaxRequest does not fire immediatly after clientside validation

10 Answers 126 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Basel Nimer
Top achievements
Rank 2
Basel Nimer asked on 12 May 2010, 09:46 PM
this is a strange case i have.

i have a textbox an ajaxpanel with the textchanged event fired when the textbox is filled through code.

the strange thing is that it works fine, but if i use validation, and the validator fails, then the next textchange will not fire the ajaxpanel!!! i even tried calling the ajaxRequest explicitly, and still it didnt fire nor called the ClientEvents-OnRequestStart event, if however i re-change the textbox again to another value without validating again, it fires normally !!!!

i tried to trace this for to no avail.

unfortunatly, i cannot post code here, but i can provide you with a link (PRIVATLY) so that you can see what i mean.

10 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 13 May 2010, 10:23 AM
Hello Basel,

Please try setting the EnableClientScripts property of the validators to false and check if this helps.

Best wishes,
Maria Ilieva
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.
0
Basel Nimer
Top achievements
Rank 2
answered on 13 May 2010, 11:46 AM
doing that disabled the Custom validator !!!, it stopped working at all,

0
Maria Ilieva
Telerik team
answered on 14 May 2010, 11:44 AM
Hi Basel,

Please refer to the following help topic which explains Ajax and validation usage.

All the best,
Maria Ilieva
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.
0
Basel Nimer
Top achievements
Rank 2
answered on 16 May 2010, 03:39 PM
Am sorry, but i didnt find the solution there!

do you mean that this is a limitation?

0
Maria Ilieva
Telerik team
answered on 17 May 2010, 10:13 AM
Hello Basel,

The only limitation is that they would work only in Full Level trust environments (i.e would not work on shared hostings). For shared hostings, please use server validation by setting the EnableClientScripts property of the validators to false.

Kind regards,
Maria Ilieva
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.
0
digitall
Top achievements
Rank 1
answered on 16 Jan 2011, 02:07 AM
I am having the same problem. When I have done something on the page to trigger client validation and the validation fails I am no longer able to call the "ajaxRequest()" method off of a RadAjaxManager instance in client script. If client validation has not been invoked everything works as expected. To reproduce:

  1. Create a standard page with a couple of textboxes and required field validators.
  2. Add two buttons - one triggers standard validation and one calls a client-script method that initiates an ajax request to do something insignificant (perhaps update a label on the page or something).
  3. Start filling in the form, intentionally leaving a required field blank.
  4. Hit the button that causes client-side validation to fire and shows the error about a required field missing.
  5. Now hit the other button that triggers the ajaxRequest() method. You'll notice this method does not fire nor does your method get invoked on the server-side.
What is the best way to resolve this? The way I am utilizing the ajaxRequest method is to update the records in a grid and it needs to fire regardless of whether client-side validation has been invoked (and failed).
0
Maria Ilieva
Telerik team
answered on 19 Jan 2011, 01:13 PM
Hello Scott,

I tried to replicate the described issue, using the provided steps but to no avail. May be I'm missing something. Could you please open a regular support ticket and send us sample runnable application which replicates the issue. Thus we will be able to test it locally and advise you further.


All the best,
Maria Ilieva
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Scott Salyer
Top achievements
Rank 1
answered on 19 Jan 2011, 04:31 PM
Ticket submitted - #385760.

"digitall" is my personal account - this account is the one with the paid subscription.
0
Maria Ilieva
Telerik team
answered on 21 Jan 2011, 03:03 PM
Hi Basel Nimer,

For better tracking the issue we will continue our support communication in the official support ticket you have opened with us.


All the best,
Maria Ilieva
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Phil
Top achievements
Rank 1
answered on 10 Oct 2012, 11:57 AM
Any resolution to this? We are having the same issue as Scott on Q2 2012 SP2.

EDIT: Seems our issue was not caused directly by client side validation, but rather a call to Page_ClientValidate() without Page_BlockSubmit = false;. Resolution was discussed here: http://www.telerik.com/community/forums/aspnet-ajax/ajax/radajaxmanager-calling-page-clientvalidate-seems-to-break-ajaxmanager.aspx
Tags
Ajax
Asked by
Basel Nimer
Top achievements
Rank 2
Answers by
Maria Ilieva
Telerik team
Basel Nimer
Top achievements
Rank 2
digitall
Top achievements
Rank 1
Scott Salyer
Top achievements
Rank 1
Phil
Top achievements
Rank 1
Share this question
or