Is there a way to disable the multiple cell selection feature? Or maybe all the selection features, even for single cells?
I’m wondering if there is a way to disable the rectangular cell selection (for selecting multiple cells) in the table.
2 answers
Hello, Claudio,
Thank you for your question.
Currently, there is no method that would completely disable cell selection.
As a workaround we kindly recommend you using the following construction:
webdatarocks.on("cellclick", function () {
webdatarocks.removeSelection();
});
webdatarocks.on("celldoubleclick", function() {
webdatarocks.removeSelection();
});
The removeSelection()
method will remove selection in case of cellclick
and celldoubleclick
events.
Also, to prevent graphical highlighting adjust add the following block to your CSS:
.wdr-sheet-selection-canvas {
display: none !important;
}
Find out an example by following the link: https://codepen.io/webdatarocks/pen/zYYjdXd
We hope it helps.
Please, let us know if you have additional questions.
Kind regards,
WebDataRocks Team
A very appreciated workaround, thank you for your support!