<rant>I'm getting downright frustrated with the lack absence of documentation for SlickGrid.</rant>
Sorry -- now that that's out of my system . . .
I'm trying to figure out the correct syntax for returning a value in a cell in a row. For example, let's say I have the following data:
ID Object Color
1 This Red
2 That White
3 OtherThing Blue
I want to do something similar to this (I'll use the onMoveRows event as an example):
grid.onMoveRows = function (rows, insertBefore) {
for (var i = 0; i < rows.length; i++) {
if (rows[i].Color == "Blue") {
// do something
}
}
};
The rows[i].Color == "Blue" is my issue. I don't know the proper syntax for this (or even if this is possible), I can't find it documented anywhere, and I don't want to waste my time trying to figure it out (I've already spent a couple of hours trying to do so).
Can someone clue me in?
Thanks in advance . . .