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
405
Hyperlink on cell based on value
posted

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

Parents
No Data
Reply
  • 405
    Verified Answer
    posted

    Ok..got it.."Stations" is the column name

    "{{if ${Stations} == 0}} " +

            "${Stations}" +

    "{{else}} " +  

           @Html.ActionLink() +
    "{{/if}}" +
        
Children