Hi,
I've a grid with a column that has a template; in this template I want to visualize a button depending not from the row but from a property in the model of the view.
Is it possible to achieve this behaviour with something like this?
<script type="text/x-jsrender" id="approveTemplate">
{{if Model.Approver == true}}
<a rel='nofollow' href="/Request/Approve/{{:Id}}" class="btn btn-default" role="button"><img src="/Content/Images/Security_Approved.png" align="middle" /></a>
{{/if}}
</script>
Thank you in advance!
Cristian