update data in jqgrid
Posted
by griZZZly8
on Stack Overflow
See other posts from Stack Overflow
or by griZZZly8
Published on 2010-03-19T06:25:43Z
Indexed on
2010/03/19
6:31 UTC
Read the original article
Hit count: 294
jqgrid
Hi!
I uses jqgrid in this scenario:
Grid gets JSON data from first url. If url returns correct JSON - grid displays that data.
If url returns incorrect url, thet fires 'loadError' event of grid. In this event i want to change url of grid to url2 fnd get JSON data from thus new url.
Here is my code.
loadError: function(xhr, st, err) {
$("#list").setGridParam({ url: '/new_url' });
$("#list").trigger("reloadGrid");
}
But it doesnt't works.
© Stack Overflow or respective owner