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
30
Close RowEditTemplate Problem
posted

Hi All,

I use RowEditTemplate to edit record, I add an onclick funtion to igtbl_reOkBtn button, in this onclick js function, it will call httphandler to save data via AJAX, but when I call igtbl_gRowEditButtonClick(event) on "success" function, get "member not found" error, seems the event is changed. My code is as below, please help. Thanks a lot.

function AddData(event){
    var jsData = {'test': "test data"};

    $.ajax({
        type: "POST",
        url: "../../GlobalHandler.ashx?MethodName=SaveChange",
        data: jsData,
        processData: true,
        //contentType: "application/json; charset=utf-8",
        dataType: "json",
        success: function(msg) {
            igtbl_gRowEditButtonClick(event);          //Get error here, and the EditRowTemplate won't be closed.  
        },
        error: function(xhr, status, error) {           

        }
    });
}