I have a customer renderer for a column in my jqGrid to which jqGrid provides the entire row JSON (rowObject) as the third parameter. I use the rowObject in my renderer to create a hybrid value: status concatenated with row ID. Nice! :)
I also have a custom sorter for the same column. jqGrid provides the custom sorter two values: the current value for status (name => "status" in my colModel) and a hash of all "named" data for the row - one of which is "status", but rowId is NOT included in the hash - apparently because I don't explicitly define a column with name = "rowId".
How do I retrieve rowObject in my custom sorttype function?
There are so few good grid packages for Javascript. I've invested lots of time in jqGrid and I find it difficult to debug problems I encounter.
EDIT:
I found a workaround where I can provide more data to my custom sorttype function. I added more columns to my grid and hide those columns. As before, the second parameter to my sorttype function includes only named data, but naming hidden data makes it available.
I am still confused why I do not receive ALL JSON in my sorttype function.