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
How to formal iggrid's cell with condition

Please provide any example for conditional column template which highlights the iggrid's cell with background color.

$(function () {
var columnSettings = [
{ headerText: "Product Name", key: "ProductName" ,
template: "{{if ${ProductName} == 'Chai' }}one{{else}}two{{/if}}"
dataSource: northwindProducts,
responseDataKey: "results",
dataSourceType: "json",
width: "100%",
autoGenerateColumns: true,
columns: columnSettings,

features: [
name: "Paging",
type: "local",
pageSize: 8