Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
305
How to formal iggrid's cell with condition
posted

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
}
]
});
});