Please provide any example for conditional column template which highlights the iggrid's cell with background color.
http://jsfiddle.net/zLRRN/1/
$(function () { var columnSettings = [ { headerText: "Product Name", key: "ProductName" , template: "{{if ${ProductName} == 'Chai' }}one{{else}}two{{/if}}" } ]; $('#resultGrid').igGrid({ dataSource: northwindProducts, responseDataKey: "results", dataSourceType: "json", width: "100%", autoGenerateColumns: true, columns: columnSettings, features: [ { name: "Paging", type: "local", pageSize: 8 } ] }); });
If there is anything else that I can do for you, contact me.
Hello,
Is there a better solution to this yet? Seems like there is a need for a cellTemplate as well as the normal template? What is the expectation to deal with these situations with changing data coming in? ie, I'm using angular and data in my grid is coming in and can change dynamically after it has already been rendered in the grid. I want to add angular directives on the td cell element itself to add additional css class to control the background color of the entire cell. How can I do this?