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.
Telerik
Build great .NET business apps
Net Web
Cross-Platform
Desktop
Reporting and Documents
Testing & Mocking
Debugging
Build JavaScript UI
Javascript
AI for Developers & IT
Ensure AI program success
AI Coding
Additional Tools
Enhance the developer and designer experience
UI/UX Tools
Free Tools
CMS
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