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: 65Questions: 15Answers: 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: 20,425Questions: 26Answers: 4,794
    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

Sign In or Register to comment.