We are using the jQuery igGrid and have written a manual export to Excel using Infragistics Excel engine. In our igGrid in the browser we are using column templates that mainly paints the cell background colors depending on their values. For numeric columns this rule will have a range such as if 10 > x > 0 and then paints the background of any cell in that column which fits in that range. For string columns we use contains, starts with, ends with etc. to set up these rules. We allow for multiple rules per column, which all have a priority set.
This works fins in the grid but we need it to follow in the Excel export. So basically we have access to all column rules and their respective background colors (both name and HEX available) in our code behind. How do we set conditional formatting in the Infragistics Excel engine? We are using ASP.NET and triggers the export via an AJAX call from the client to an aspx page and we build the workbook in our code behind for that page.
Dear Elin Johansson,
Thanks for using Ignite UI controls.
After investigating this matter further what I can suggest is using the following Excel Options.
Some further reference about Excel options could be found at:http://help.infragistics.com/Doc/jQuery/2014.1/CLR4.0?page=Infragistics.Web.Mvc.Documents.Excel~Infragistics.Documents.Excel_namespace.html
Additionally, a working sample demonstrating how cells could be exported along with their formatting could be found at:http://igniteui.com/infragistics-excel/create-excel-worksheet
Please feel free to contact me if you have any additional questions regarding this matter.
Best Regards,
Stanimir Todorov
Hello,
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.