문제

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.

도움이 되었습니까?

해결책

Okay, I solve it by this:

$('#myGrid').on('reloadGrid', myFunc());
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top