ParamQuery grid support forum

General Category => ParamQuery Pro Evaluation Support => Topic started by: daizhixia on December 09, 2014, 03:37:09 am

Title: combine multiple rows to be considered as one row
Post by: daizhixia on December 09, 2014, 03:37:09 am
I have specific requirements need to build special json structure;

each row will have three children rows 1, 2, 3, 

most values are copied from the first row;  and row 2, row 3 will have slight different values compare to row one in the dynamic columns.

now the data grid generate 3 rows for my json structure;

when I group the data, it throws errors, anyway that can make the index to be 1, and each index will contain three children ?
Title: Re: combine multiple rows to be considered as one row
Post by: webifi on December 10, 2014, 12:37:39 am
If you can't modify the way the server responds with json, you could loop over and modify the response client side in the dataModel's getData (http://paramquery.com/pro/api#option-dataModel-getData).

Probably be easier to help if you post a sample of the json.