Search in the middle of a column by default in jqGrid with toolbar search

前端 未结 3 1734
轮回少年
轮回少年 2021-01-01 04:21

After reading the jqGrid wiki (and taking example from: Case insensitive search in jqGrid including hidden fields), I cannot find what I want to do.

Is there any se

3条回答
  •  不思量自难忘°
    2021-01-01 04:48

    $("#list").jqGrid('filterToolbar', {stringResult: true, searchOnEnter: false, defaultSearch : "cn"});
    

    In the above example the **defaultSearch : "cn"** is used to search using any substring of item you want to search. Removing defaultSearch : "cn" starts search beginning with the substring.

提交回复
热议问题