It seems for me absolute correct behavior. The value of the parameter rowObject
is object having properties with the same names as defined in the 'name' property of the colModel
. The property account
is one from there. I suppose that the misunderstanding come from the following part of the documentation of the custom formatter:
rowObject - is a row data represented in the format determined from datatype option. ... If we have datatype: json/jsonstring - the rowObject is array, provided according to the rules from jsonReader
Probably the word array follows to misunderstanding. In JavaScript rowObject.account
can be used as rowObject["account"]
, but one can't use rowObject[5]
to access the account
property of rowObject
. It is just not clear written sentence in the documentation. If you are a native English speaker you can reformulate the text so that it will has no misunderstandings. The documentation is wiki and any person can change any text.