Hi
I am using version 4.0.2 and using dhtmlxgrid_pivot.js.
When calling makePivot on a grid, there is no horizontal srollbar, it shows when the makePivot method is not called. Here is my code.
function loadProductSales() {
var ProductSales = new dhtmlXGridObject('ProductSales');
ProductSales.setImagePath('javascripts/codebase/imgs/');
ProductSales.setHeader('Product group,Month,Amount,Year,Cal YTD,Fin YTD',null,["text-align:left;","text-align:left;","text-align:right;","text-align:left;","text-align:left;","text-align:left;"]);
ProductSales.setColAlign('left,left,right,left,left,left');
ProductSales.setColTypes('ro,ro,ro_wvint,ro,ro,ro');
ProductSales.attachFooter(' , ,Sum: {#stat_total}, , , ');
ProductSales.setColSorting('str,date,sort_wvint,date,date,str');
ProductSales.setInitWidths('150,100,150,100,100,100');
ProductSales.init();
ProductSales.setSkin('dhx_skyblue');
ProductSales.enableSmartRendering(false);
ProductSales.i18n.decimal_separator=".";
ProductSales.i18n.group_separator=",";
ProductSales.attachEvent("onXLS",function(){ showProgress("prgProductSales", "ProductSales"); });
ProductSales.attachEvent("onXLE",function(){ hideProgress("prgProductSales"); });
ProductSales.loadXML('pagevrd.vrd?session=vl8eyhp2199bjiqovqac24bg4fv4z0eq&objectOid=9251.1&repeatSectOID=16546.1301&page=Customer Enquiry Form&formAction=getData', function() {ProductSales.makePivot(null, {title:"Product Sales",titleStyle:"font-weight:bold;font-size:12px;",x:3,y:1,value:2,action:0});});
}
Is there something I am doing wrong or missing some code to allow a pivot table to have a scrollbar? Or maybe an bug in dhtmlx?
Thanks