After adding setColumnWidth to each row of the pivottable I get an error about a variable called desi not known.
The code:
var pivotGridInstance = $(‘#divPivotGrid’).jqxPivotGrid(‘getInstance’);
var pivotRows = pivotGridInstance.getPivotRows();
for (i=0; i<pivotRows.items.length; i++)
{
pivotRows.items[i].expand();
pivotRows.setColumnWidth(i, 200);
}
pivotGridInstance.refresh();
After debugging jqxPivotGrid.js I found that a variable is used but nowhere declared:
b=c>e?desi:e
I replaced it with b=c>e?c:e which made the error disappear.
@JQWidget team, can you please check if this is indeed the solution and if so add this in future version.
Thx,
Ewoud