This is my workaround :
– First, remove the FormatterFunction for desired column.
– Add a class in RowTemplate like : "<td class=\"applyMultilineFormater\">${MyColumnValue}</td>"
– Then, add a delegate to intercept the 'dataRendered' event.
$(document).delegate("#myMasterGridName", "iggriddatarendered", function (evt, ui) {
$('.applyMultilineFormater').each(function () {
$(this).html(MultilineFormater($(this).html()));
});
});
function MultilineFormater(val) {
return val.replace(/\n/g, "<br/>");
}
And it works !
Feel free to correct/update my code.
Thanks.