1

テキストボックスフォーマッタ列を持つjqGridがあります。テキストボックスに何かを入力して検索操作を行うと、テキストボックスがクリアされます。検索後もテキストボックスの値を保持したい。これが私のコードです:

colModel : [ 
   {name:'val',index:'val', width:40, align:'center',searchoptions: { sopt: ['eq'] } },
   {name:'id',index:'id', width:50,sortable:false,align:'center',edittype: "text",search:false,formatter:ctrlformat}            
]


function ctrlformat (cellvalue, options, rowObject ){       
return '<input type="text" id='+cellvalue+' name="valId" />';

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

ツールバー検索付きグリッド、および colName

4

0 に答える 0