Checking row data against others rows data
Checking row data against others rows data
Rolighed
Posts: 2Questions: 1Answers: 0
Pleease help.
So, I have a datatable with X rows. In it I have a column named "Weight".
When I render my "Weight" Column for a Row, I want to check if the weight (data) for this Row is the lowest value of all Rows. I only want to look at/compare to "visible" Rows, so filtered Rows should be ignored. However, Rows on other pages should be included if paging us used!
I suspect I should do something in the render method in my columnDefs? In line of...:
"render": function (data, type, row) {
if (type == "display") {
if (ISLOWESTWEIGHT) {
return "<i class='fa fa-trophy'></i> " + data;
}
else {
return data;
}
}
}
This discussion has been closed.
Answers
Really? Noone???