I have count column in igGrid, which is a link to open some other page and everything is working as expected. Now I want to show the hyperlinnk only of the count(i.e value in the cell) is greater than ZERO. SO that means if the value is ZERO its simple text and greater than 0 its a hyperlink. How to achieve this in jQuery RowTemplate
Ok..got it.."Stations" is the column name
"{{if ${Stations} == 0}} " +
"${Stations}" +
"{{else}} " +
@Html.ActionLink() + "{{/if}}" +
Hi,
Kudos for finding the solution :).If you need a point of reference on conditional formatting, you can take a look at the source code sample of the "Conditional Row Template" sample here:http://samples.infragistics.com/jquery/templating-engine/conditional-row-template Cheers,Borislav
Hi Borislav,
Using the conditional row template example, I am trying to highlight the row based the Station count (in my example above), somehow it highlights only the value in the cell not the whole cell, what is that I am missing.
"{{if ${Stations} == 0}} " + "<span class='rowCriticalAttention'>${Stations}</span>" + "{{else}} " + "${Stations}" +
"{{/if}}" +
Got it..
In my style declaration I have to use display:block
.rowCriticalAttention { background-color: #FF7283; display:block; }