I have a custom field renderer which highlights background color of a table row if certain condition is true. However, if a user clicks the delete button on that row because of the custom renderer that row does not get highlighted in ‘Pink’.
To fix this, I am calling another snippet using model action. Idea is - if a model has rows flagged for deletion the snippet should get called, temporarily disable the custom highlighting.
var field = arguments[0];
$ = skuid.$;
value = arguments[1];
if(field.element.hasClass(“finished-sentence”)) {
field.element.removeClass(“finished-sentence”);
} else if (field.element.hasClass(“unfinished-sentence”)){ field.element.removeClass(“unfinished-sentence”);
}
However, I am getting errors in console on addClass and RemoveClass. Help please!!
Question
Custom renderer and row deletion issue
This topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.