jqGrid Filter Toolbar initial default value

前端 未结 5 1987
天涯浪人
天涯浪人 2020-12-14 22:02

I\'m using jqGrid with the filter toolbar, i need to set an initial default filter value to one of the fields so that only rows with status \'Open\' are displayed by default

5条回答
  •  情歌与酒
    2020-12-14 22:22

    Have you looked at Toolbar Searching and Add-On Grid Methods in the jqGrid documentation wiki? It looks like you may be able to use filterToolbar to set a filter, and triggerToolbar to set the filter. I have not tried this myself, but you could probably do this in loadComplete, once data has been loaded for the grid.

    Does this help?

提交回复
热议问题