Everything is possible. I'm not sure what you want, this is the best way. In most cases, I recommend using some standard method, then your live will be easier, especially after changing the new version of the control you are using.
(. http://www.trirand.com/jqgridwiki/doku.php?id=wiki:custom_formatter) formatter: 'select', , . ,
{ name: 'Options', width: 150, align: 'left', editable: true, edittype: 'select',
editoptions: {
value: function() { return buildSelect(); }
},
formatter: function (cellvalue, options, rowObject, action) {
if (cellvalue === 'Yes') {
return '<select><option value="1" selected="selected">Yes</option>' +
'<option value="0">No</option></select>';
} else {
return '<select><option value="1">Yes</option>' +
'<option value="0" selected="selected">No</option></select>';
}
}
}
select "" "" ( "" "" ). change select.