Product Bundles
DevCraft
All Telerik .NET and Kendo UI JavaScript components and AI Tools in one package.
Kendo UI
Bundle of AI Tools plus four JavaScript UI libraries built natively for jQuery, Angular, React and Vue.
Build JavaScript UI
Javascript
Agent and App Development Solutions
Build. Accelerate. Govern.
AI-Ready Application Experiences
AI-Assisted SDLC
Agent Governance and Control
Telerik
Build modern .NET business apps
.Net Web
Desktop
Reporting and Documents
Cross-Platform
Additional Tools
Enhance the developer and designer experience
Testing & Mocking
CMS
Debugging
UI Tools
Free Tools
Support and Learning
Productivity and Design Tools
Hi Team,
Is there any way to set the pattern color and pattern style of a cell before exporting to excel using jQuery?
Thanks,
Julian A
Hi,
To apply background color to he exported Excel file you need to handle the excelExport event and modify the e.workbook object.
sheets.rows.cells.background
For example:
excelExport: function(e) { e.workbook.sheets[0].rows.forEach(row=>{ row.cells.forEach(cell=>{ // apply background color to 'Alice Mutton' if(cell.value && typeof cell.value=="string" && cell.value === "Alice Mutton"){ cell.background = "#FF0000"; } }) }) }
Dojo demo: https://dojo.telerik.com/IxAraqaz
Regards, Nikolay Progress Telerik