Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
845
Success Event Handler not firing
posted

Good day.

I have implemented a Success Handler function called "ReturnsSuccessHandler" for my igHierarchicalGrid in my MVC4 project, in the same manner as described at the end of this article: http://es.infragistics.com/community/forums/t/66850.aspx

Basically I have a Save function called by a button:

function SaveReturns() {

 $("#grdReturns").data("igGrid").dataSource._addChangesSuccessHandler(ReturnsSuccessHandler)
       

        $("body").css("cursor", "wait");

       
        $("#grdReturns").igGrid("saveChanges");

}

Before upgrading my project from IgnuteUI 2014.1 and jQuery 1.7.2 to IgniteUI 2016.1 and jQuery 2.0.3, this was all working i.e. my "ReturnsSuccessHandler" function was being called after save without a problem. Since upgrading, it no longer fires.

Why is this? I cannot see any errors in my console to point me in the right direction. This method is no longer working on 2 views.

Regards

Deon

Parents
No Data
Reply
  • 1235
    posted

    Hello Deon,

    All you have to do is add a second parameter to the "saveChanges" function, which acts as a success callback function. For example:

    $("#grdReturns").igGrid("saveChanges", ReturnsSuccessHandler);

    Test it yourself and please let me know if it solves your problem.

    Regards,
    Ivaylo Hubenov
    Entry-level developer

Children