Pregunta

I want to run a function every time the grid reloads.

So How can I achieve that?

I am invoking reloadGrid by this:

jQuery("#myGrid").trigger("reloadGrid");

I have a function

function myFunc()
{
 // Do something
}

I am not getting the reloadGrid event handler. If I get that one, then I can just bind reloadGrid again with the handler call and myFunc() call.

¿Fue útil?

Solución

Okay, I solve it by this:

$('#myGrid').on('reloadGrid', myFunc());
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top