开发者

jqgrid refresh grid button doesn't pass along filters

when i use jqgrid and enter values on the top toolbar filter or the advanced filter and then clic开发者_如何学JAVAk the "refresh grid" button in the footer of the grid, it wipes out the values in the filters.

is this a bug in jqgrid, or is there something that you have to do explicitally for it to keep the state of the toolbar column filters.

is there anyway to get this to work?

jqgrid refresh grid button doesn't pass along filters


How you can see in the source code of jqGrid (see here) the behavior is by design so. The oldest version of jqGrid which I could found is jqGrid 3.5.2 and in the version the grid filters ware also reseted.

If you need another behavior of reload button you can add (using navButtonAdd) your custom button which looks like the original reload button (it cat has "ui-icon-refresh" as the buttonicon parameter) and implement another behavior of reloading. For example you can just call trigger("reloadGrid", [{page:1}]).

Another possibility for reloading customization are beforeRefresh and afterRefresh events.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜