I'd like to add a button to the JQGrid Toolbar that would say something like [Show Inactive], and when clicked, filters the data within the grid to display according to my programatically created search criteria. Is this possible? Annoyingly, there's a "filter toolbar", which hampers Googling开发者_开发技巧.
I hope you will find all answers in this, this and this answer. First of all you should add your custom button with respect of navButtonAdd. Then you should set the filter with respect of postData
and search:true
parameters of jqGrid and trigger reloadGrid
.
精彩评论