1

I have external jqGrid component setup with lightning. On initialization, it calls controller's function 'jsLoaded'. This function initially loads the data into grid. Everything works great up to here. Now, i have edit events on the grid which have function binding. But when save event is raised, function is called correctly, constructs action object and sObject parameter but when submit to $A.enqueueAction, nothing happens, no errors!

See the attached screenshot for the code: [enter image description here][enter image description here]2

1 Answer 1

5

Since helper.sendPerson() is called by jQuery which happens outside of Lightning's execution context. You need to wrap the jQuery's bind function within $A.getCallback() to make it execute within the Lightning's context.

j$('#jqGrid').bind('something',$A.getCallback(function(params){
  //logic
}));

Please refer this answer it solves similar problem.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .