Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why have`t success event for ajax in jqgrid? #807

Closed
198907026139 opened this issue Aug 25, 2016 · 1 comment
Closed

why have`t success event for ajax in jqgrid? #807

198907026139 opened this issue Aug 25, 2016 · 1 comment

Comments

@198907026139
Copy link

I want do it like this:
$("#xxx").jqGrid({ url:"xxxx", datatype:"json", colNames:[], colModel:[] success: function() { //TODO } });

but the success event is NULL.

@tonytomov
Copy link
Owner

Hello,

You may need to use beforeProcessing event (which is called in ajax sucess) and return false to stop future processing

$("#xxx").jqGrid({
...
beforeProcessing : function( data, status, xhr) {
// do something
return false;
}
...
});

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants