How can i draw a row/table again when i inline edit something
How can i draw a row/table again when i inline edit something
Currently I am using inline editor where i want to redraw the row upon editing the comment field so it can higlight the row.
At the moment i have to manually refresh the ajax to get the row highlighted.
I also have manipulated my editor drawType but no luck.
Thanks in Advance
createdRow: function (row, data, dataIndex) {
var comment = data["comments"];
var eventBgColor = "#eda09a";
var eventTextColor = "#000";
var regex = /\bremoved\b/i;
if (regex.test(comment)) {
$("td", row).each(function () {
$(this).css({ 'background-color': eventBgColor, 'color': eventTextColor });
});
}
}
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
createdRow
executes only once when the row is created. You might need to change to suingrowCallback
which will execute for each table draw.Kevin