How to add hyperlink inside ClientTemplate with IF condition- Ajax Bound Kendo UI for ASP.NET MVC
<p>I am using ASP.NET MVC. I want to make the Account_Number column as HTML link in the Ajax Bound Kendo UI grid, when it is not searched by Account_Number from previous page. And when clicked on the Account_Number link, it should pass the Account_Number to the Customer controller method 'QuickCheckSearch'.<br>
The below code does not populate the grid in view and also do not call/pass the value to the controller. Could someone please correct the following code? </p>

<p>Thanks in Advance.</p>

<pre><code>  columns.Bound(p =&gt; p.Account_Number)
 .ClientTemplate("&lt;#if (item.Account_Number == Model.AccountNumber){&gt;Account_Number &lt;# }" + "else{#&gt;&lt;a href='" + Url.Action("QuickCheckSearch", "Customer") + "?Account_Number=#=Account_Number#'&gt;#= Account_Number #&lt;/a&gt; &lt;# } #&gt;")
 .Title("Account Number");
</code></pre>