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

Aryan1703Aryan1703 Posts: 77Questions: 20Answers: 1

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

Answers

  • kthorngrenkthorngren Posts: 22,152Questions: 26Answers: 5,100
    Answer ✓

    createdRow executes only once when the row is created. You might need to change to suing rowCallback which will execute for each table draw.

    Kevin

This discussion has been closed.