Hi
I have been using this
http://www.jqwidgets.com/community/topic/related-to-parent-child-jqxgrid/
as my sample and modified it. Since the initrowdetails function has the following signature:
function (index, parentElement, gridElement, record)
I thought a reasonable approach would be to access the details via the record passed in so I added that property to
source.datafields.
var source = { localdata: $scope.data,
datafields: [ { name: ‘id’, type: ‘string’ }, ….. { name: ‘details’, type: ‘array’}], ….. }
var dataAdapter = new $.jqx.dataAdapter(source, {
loadComplete: function (data) { },
loadError: function (xhr, status, error) { }
});
However the record parameter in initrowdetails contains the detail property but it’s value is a string,
details: “[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]”
rather then an array.
So question becomes how can I pass the details array from the parent row into the initrowdetails function.
Regards
Aidan