Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/469.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/238.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript jqGrid-是否可以更改单元格的可搜索内容?_Javascript_Php_Jquery_Jqgrid - Fatal编程技术网

Javascript jqGrid-是否可以更改单元格的可搜索内容?

Javascript jqGrid-是否可以更改单元格的可搜索内容?,javascript,php,jquery,jqgrid,Javascript,Php,Jquery,Jqgrid,使用jqGrid我得到了一个colModel如下: colModel:[ {name:'id',index:'id', width:50, search: true, sort: true, editable: false}, {name:'number',index:'number', width:150, search: true, sort: true, editable: false}, {name:'product',index:'product', width

使用
jqGrid
我得到了一个
colModel
如下:

colModel:[
    {name:'id',index:'id', width:50, search: true, sort: true, editable: false},
    {name:'number',index:'number', width:150, search: true, sort: true, editable: false},
    {name:'product',index:'product', width:300, search: true, sort: true, editable: false},
    {name:'pdf_dropdown',index:'pdf_dropdown', width:500, search: true, sort: true, editable: false}
]
   {name:'pdf_dropdown',index:'pdf_dropdown', edittype:"select", formatter:"select", 
            stype: 'select', width:500, search: true, sort: true, editable: false,             
             searchoptions:{dataUrl:'yourUrl'}}
我的名为“pdf_dropdown”的专栏通过我的一项定制获取内容,该定制将
html选择对象
输入其中:

$row['pdf_dropdown'] = '<select name="my_select"><option value="4">Some Text</option>........</select>';
在那里,我可以在我相应的
php
文件中,使用
$row['pdf\u dropdown\u searchable']
为“pdf\u dropdown\u searchable”提供内容

任何帮助或想法都将不胜感激

有一个名为searchoptions的选项,但仅适用于stype select字段。大概是这样的:

colModel:[
    {name:'id',index:'id', width:50, search: true, sort: true, editable: false},
    {name:'number',index:'number', width:150, search: true, sort: true, editable: false},
    {name:'product',index:'product', width:300, search: true, sort: true, editable: false},
    {name:'pdf_dropdown',index:'pdf_dropdown', width:500, search: true, sort: true, editable: false}
]
   {name:'pdf_dropdown',index:'pdf_dropdown', edittype:"select", formatter:"select", 
            stype: 'select', width:500, search: true, sort: true, editable: false,             
             searchoptions:{dataUrl:'yourUrl'}}
对于所有选项,请参见:


谢谢你的提示。我明天会查出来的。