You can supply a "preProcess" callback function to alter/format the data returned by the ajax call before it is displayed:
preProcess: function(data) {
$.each(data.rows, function(i, row) {
row.checked = row.checked ? 'Yes' : 'No';
});
return data;
},
Note: I don't really see where the "preProcess" callback is documented other than the following note on the Flexigrid project page:
New preProcess API, allows you to modify or process data sent by server before passing it to Flexigrid, allowing you to use your own JSON format for example.
It seems, however, to work pretty much like the "dataFilter" callback of the jQuery .ajax
function.