in the trirands jqGrids's pivot table has a table called many summary values
in it, it uses the following json data
{
"rows":[
{
"CategoryName":"Beverages",
"ProductName":"Steeleye Stout",
"Country":"UK",
"Price":"1008.0000",
"Quantity":"65"
},{
"CategoryName":"Beverages",
"ProductName":"Laughing Lumberjack Lager",
"Country":"USA",
"Price":"140.0000",
"Quantity":"10"
},{
"CategoryName":"Beverages",
"ProductName":"Guarana Fantastica",
"Country":"USA",
"Price":"724.50",
"Quantity":"10"
}
]}
Assume i'm sending something similar to above data from DB, in the sample on trirand website shows that are two columns with Captions Price and Qty. But assume i only need the price column and in that price column header instead of printing the caption price i want to print the value in the Price property of above data. so if teh json has 12 objects there will be 12 price columns but those price columns will have the value of the prices printed on the column header caption like this: