How to Add Checkbox in the Jqgrid Filter Search Tool Bar?
There is no option for adding check box in Search toolbar , but we can add a column with values as check box in grid rows
Alternative way :
It contains the following options for common searching
- Search
- Stype
- Searchoptions
- searchrules
stype : It determines the search type of the field. (text and select)
text: create the text element in search toolbar
select: create the select(drop down) element in search toolbar
Example:
I have a grid with the column name system_defined , I want to show the checkbox in each grid row and search toolbar will be shown as a drop down values with multiselect option.
{name:’system_defined’,index:’system_defined’, edittype:’checkbox’, search: true, formatter: “checkbox”, editoptions: { value: “1:Yes;0:No”},editable:true, searchoptions: { sopt: [‘eq’], value: “:All;1:Yes;0:No” }, stype: ‘select’}
text: create the text element in search toolbar
select: create the select(drop down) element in search toolbar
Example:
I have a grid with the column name system_defined , I want to show the checkbox in each grid row and search toolbar will be shown as a drop down values with multiselect option.
{name:’system_defined’,index:’system_defined’, edittype:’checkbox’, search: true, formatter: “checkbox”, editoptions: { value: “1:Yes;0:No”},editable:true, searchoptions: { sopt: [‘eq’], value: “:All;1:Yes;0:No” }, stype: ‘select’}