Hi,
I have a project where I need to make some custom column data visualization. My data source is in dynamic JSON, coming from a server. I am well able to do the custom display itself using the cellsrenderer callback.
But, the data I need to process to determine how exactly to render is comming in the returned json array as a “field” of the “row” array (trainings). It is json-encoded as an object. I can not specify this field in the dataadapter’s datafields section since it’s type is not one of the supported ones. It is an object. I tried to add { name: 'trainings', type: 'string' },
as well as { name: 'trainings', type: 'object' }
, but I had o success to get it’s content back in the cell renderer. After calling var datarow = $("#jqxgrid").jqxGrid('getrowdata', row);
“trainings” is there, but as an empty object, without it’s content.
How can I access this data field of the source? Is there any chance to access the raw source from within the cell renderer?
Thank you in advance,