Posted 11 February 2018, 8:54 pm EST
Hi, most probably this is a Feature but in my case, it brings issues.
I have a grid where the Content of a cell can be really Long. This means that a row/cell height can be bigger than the grid height. The result is, when i click on a button in a “big height” cell, the grid automatically scrolls to the top of this current row and the button Event is cancelled.
I would like to prevent this “autoscroll” Feature of the flexgrid.
I am working on this code in order to prevent the jump/scroll issue.
flex.addEventListener(flex.hostElement, ‘mousedown’, (event) => {
console.log(‘event.target.nodeName:’);
console.log(event.target.nodeName);
if(event.target.nodeName == 'I'){ event.stopPropagation(); event.preventDefault(); event.cancel = true; console.log('button icon click'); }else{ console.log('cell click'); } }, true);
Any ideas?
Best regards, Asmo