Bind actionComplete event after grid creation

actionComplete event can be bind when declaring the grid like below:

let grid: Grid = new Grid({

  actionComplete: function (args){}

});

But how to bind the event when the grid creation already completed.

e.g.: 

var gridObj = document.getElementById('Grid').ej_instances[0];

gridObj.actionComplete = function(args) { console.log(args); };

This is not working, what is the correct syntax to do so?


1 Reply 1 reply marked as answer

PG Praveenkumar Gajendiran Syncfusion Team August 10, 2020 07:53 AM UTC

Hi Aminur, 

Greetings from Syncfusion support. 

We validated your query and provided code example. In the code snippet, We found that your taking Grid instances not properly. So please refer the below code snippet to achieve your requirement. 

Code Snippet: 
 
var gridObj = document.getElementById('Grid').ej2_instances[0];  //Grid Instance 

gridObj.actionComplete = function(args) { console.log(args); };  
 

Let us know if you have any concerns.

Regards,
Praveenkumar G 


Marked as answer
Loader.
Up arrow icon