ajaxRequest does not fire immediatly after clientside validation

11 posts, 0 answers
  1. Basel Nimer
    Basel Nimer avatar
    94 posts
    Member since:
    Oct 2009

    Posted 12 May 2010 Link to this post

    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.

  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 13 May 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Basel Nimer
    Basel Nimer avatar
    94 posts
    Member since:
    Oct 2009

    Posted 13 May 2010 Link to this post

    doing that disabled the Custom validator !!!, it stopped working at all,

  5. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 14 May 2010 Link to this post

    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.
  6. Basel Nimer
    Basel Nimer avatar
    94 posts
    Member since:
    Oct 2009

    Posted 16 May 2010 Link to this post

    Am sorry, but i didnt find the solution there!

    do you mean that this is a limitation?

  7. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 17 May 2010 Link to this post

    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.
  8. digitall
    digitall avatar
    169 posts
    Member since:
    Jun 2006

    Posted 15 Jan 2011 Link to this post

    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).
  9. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 19 Jan 2011 Link to this post

    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.
  10. Scott Salyer
    Scott Salyer avatar
    14 posts
    Member since:
    Apr 2009

    Posted 19 Jan 2011 Link to this post

    Ticket submitted - #385760.

    "digitall" is my personal account - this account is the one with the paid subscription.
  11. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 21 Jan 2011 Link to this post

    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.
  12. Phil
    Phil avatar
    2 posts
    Member since:
    Mar 2009

    Posted 10 Oct 2012 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017