2

I am trying to trigger reloadGrid event to fetch data from url. However no http request is being made. I have checked through Fiddler.

grid.jqGrid('setGridParam', { url: 'http://localhost:50570/api/Test/Get/' }).trigger("reloadGrid");

Any thoughts?

Regards,

Abhilash

1
  • is it another url or it is the same when grid first time loaded Apr 10, 2014 at 6:35

1 Answer 1

4

If it is different url than the first, then add datatype:"json"

grid.jqGrid('setGridParam', { url: 'http:...Your Url' ,datatype:"json"}).trigger("reloadGrid");

Or if it is same then

 $(this).jqGrid('setGridParam', { datatype: 'json' }).trigger('reloadGrid');
1
  • 1
    Thanks Janina. That helped!
    – AbSharp
    Apr 10, 2014 at 6:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.