Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
Hello,
I need to disable the button that selects the entire sheet in SpreadSheet. I tried to hide it with CSS but the button remains active.
I have highlighted in yellow the button I am talking about in the screenshot below.
Thanks.
function onSelect(e: any) { const selectedCellorRange = e.range._ref; if (selectedCellorRange.topLeft && selectedCellorRange.bottomRight) { const topLeft = selectedCellorRange.topLeft; const bottomRight = selectedCellorRange.bottomRight; if (bottomRight.row > 0 && bottomRight.col === totalColumns && topLeft.row === 0 && topLeft.col === 0) { selectedCellorRange.topLeft.row = null; selectedCellorRange.topLeft.col = null; selectedCellorRange.bottomRight.row = null; selectedCellorRange.bottomRight.col = null; } } }
function onSelect(e: any) { const selectedCellorRange = e.range._ref; if (selectedCellorRange.topLeft && selectedCellorRange.bottomRight) { const topLeft = selectedCellorRange.topLeft; const bottomRight = selectedCellorRange.bottomRight; if (bottomRight.row > 0 && bottomRight.col === totalColumns && topLeft.row === 0 && topLeft.col === 0) { selectedCellorRange.topLeft.row = null; selectedCellorRange.topLeft.col = null; selectedCellorRange.bottomRight.row = null; selectedCellorRange.bottomRight.col = null; }
} }
Hi Hippolythe,
Thank you for sharing the solution with the community. I believe this will be helpful to others facing the same scenario.
Regards,
Nikolay