Hi,
I’m getting the following error when enabling column drag and drop when using smart rendering:
this._col_combos is undefined
moveColumn()(3, 0, undefined)getfile…d_mcol.js (line 12)
_addColInRow()(3, 0)getfile…d_mcol.js (line 13)
_stopColumnMove()(mouseup clientX=444, clientY=384)getfile…d_mcol.js (line 27)
[Break on this error] this._cCount++;this._cMod++;this._maste…Ind];for (var j=oldInd;j>(newInd+1);j–)
This is my script code:
function createGrid(url) {
mygrid = new dhtmlXGridObject(‘table_container’);
mygrid.enableColumnMove(true);
mygrid.setImagePath("/content/lib/dhtmlx/2/dhtmlxGrid/codebase/imgs/");
mygrid.setSkin(“platinum_manager”);
mygrid.enableRowsHover(true,‘grid_hover’);
#if (!$MaximumRows)
$MaximumRows = 20;
#end
mygrid.enableAutoHeight(true, 20 * $MaximumRows);
mygrid.enableAlterCss(“even”,“uneven”);
mygrid.preventIECaching(true);
mygrid.attachEvent(“onBeforeSorting”,onBeforeSort);
mygrid.load(url);
mygrid.attachEvent(“onBeforeCMove”,function(sInd,tInd){
return true;
});
mygrid.init();
}
And XML loaded:
−
Domain
TLD
etc…
−
−
true
0
asc
−
−
true
50
XML for sending data:
−
domain1.co.uk
co.uk
etc…
mkt
MICKEY WEINSTOCK & CO NV
ns1.ascio.net, ns2.ascio.net
etc…
Can you help resolving this issue?
Thanks
Unfortunately problem can’t be reconstructed locally.
The sample with same code works correctly in case of local samples.
Latest version of “mcol” extension sent by email. If error still occurs - please provide any kind of sample where issue can be reconstructed.
Hi, I was able to resolve this issue by adding some code into the column moving JS file to check if a combo column exists before trying to check the length of it’s items. This solved the null refernce error that was occuring.
Thanks,
Chris
If possible - please send updated js file to support@dhtmlx.com, so we will be able to integrate necessary changes in next version of grid.