Hi,
here a working code pen reproducing the problem – https://codepen.io/andreaguarducci/pen/yLjvbyK
What is Triggered :
Uncaught TypeError: Cannot read properties of undefined (reading ‘style’)
at BaseElement._recycle (smart.elements.js:65:154764)
at BaseElement._refresh (smart.elements.js:65:131361)
at BaseElement.refresh (smart.elements.js:65:169530)
at BaseElement.r (smart.elements.js:6:72270)
at BaseElement._resizeHandler (smart.elements.js:65:132492)
at BaseElement.d (smart.elements.js:6:61423)
at f.dispatch (smart.elements.js:6:26716)
at f.dispatchEvent (smart.elements.js:6:27730)
at Object.resize (smart.elements.js:6:28022)
at t.<computed> [as resize] (smart.elements.js:6:12419)
14smart.elements.js:65 Uncaught TypeError: Cannot read properties of undefined (reading ‘getBoundingClientRect’)
at o (smart.elements.js:65:51146)
at BaseElement._columnMoveHandler (smart.elements.js:65:51548)
at HTMLDivElement.d (smart.elements.js:6:61423)
at f.dispatch (smart.elements.js:6:26716)
at f.dispatchEvent (smart.elements.js:6:27730)
at Object.move (smart.elements.js:6:28022)
at t.<computed> [as move] (smart.elements.js:6:12377)
at h.handleMove (smart.elements.js:6:18423)
at h.pointerMove (smart.elements.js:6:18959)
at f.dispatch (smart.elements.js:6:26716)
When is triggered:
when u call Smart(‘#grid’, class {}) inside a function with ColumnGroups && CommandColumn
Why i found it:
because i use routing,
fnName = myFunction
window[fnName]();
window.myFunction = function (){
initGrid();
}
function initGrid(){
Smart(‘#grid’, class {});
}
Additional Notice:
if u remove ColumnGroups or CommandColumn (from Editing) the grid works, with both no.
hope u can help me solve this problem,
TY.