General Category => Help for ParamQuery Pro => Topic started by: khadden on July 21, 2015, 05:24:47 am
Title: Two lines for every row of json data?
Post by: khadden on July 21, 2015, 05:24:47 am
Hi, I have a column (in my json data) that has a list of names, so the data is potentially long. I need to have that column show in a second line for each row of json data.
So let's say I'm showing 4 column. Columns 1 - 3 should be on one line, and column 4 should be on a second line and be the entire width of the grid (i.e. colspan=3).
LIke this:
Employer
First
Last
Joe's plumbing
Fred
Smith
Employees: John, Bill, George, Jimmy
Greg's Auto
John
Jones
Employees: Sam, Phil, Tim
Jill's hair salon
Jane
Doe
Employees: Sally, Jan, Alfred, Susan, Margret
Any ideas?
Title: Re: Two lines for every row of json data?
Post by: paramvir on July 21, 2015, 07:30:11 pm
It can be done with detailModel
In the detailModel.init callback you have access to the rowData with which you can fill the data for second row. And second row fills entire width of the grid.
Example: http://paramquery.com/pro/demos/detail
Title: Re: Two lines for every row of json data?
Post by: khadden on July 22, 2015, 12:22:30 am
Thanks I saw that in the api docs, but I'm on 2.0.0 and it doesn't seem to be available. I'll try to buy an upgrade. And see if it works.