requestEnd, when is it fired?

4 posts, 0 answers
  1. Bilal
    Bilal avatar
    109 posts
    Member since:
    Oct 2014

    Posted 08 Jun 2015 Link to this post

    Hi,

    From what I've read, requestEnd fires at the end of the request to signal that the operation is completed.

    First, in case the error event of DataSource is fired, will the requestEnd also fire?

    Also, in case there are records created and others updated, DataSource will fire two requests to server (batch mode), one for creation and another for updating. requestEnd fires twice in this case? Or just once, after both requests have been updated? 

     

    Regards

    Bilal

  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 09 Jun 2015 Link to this post

    Hello Bilal,

    The requestEnd event will be fired when the error event is fired, the thing is that it will be fired for every single dataSource request, just to indicate the request is no longer in process and it is completed either with error or with success.

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Bilal
    Bilal avatar
    109 posts
    Member since:
    Oct 2014

    Posted 10 Jun 2015 in reply to Kiril Nikolov Link to this post

    Thanks for the reply. Just an inquiry, requestEnd will be fired when error event is fired? Didn't get well that statement.

     

    Best regards

    Bilal Haidar

     

  5. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 10 Jun 2015 Link to this post

    Hello Bilal,

    It will be fired when the error is fired as well. But you can easily test that in your project as well.

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready