I have a grid that I am trying to add a column to. Everything works except I need to be able to call a Javascript method, which also works, and pass a value to it, which does not work. Here is my code:
columns.Template(x =>
{ %>
<% if (SiteContext.Session.IsAdmin) {%>
<a href="javascript:void(0);" onclick= "DeleteDisposition('" + id +'");">Delete</a>
<% } %>
<%
}).Title("Delete")
.Width(80)
.Visible(SiteContext.Session.IsAdmin);
Can someone tell me what I am doing wrong here? I cannot figure this out. Thanks...
columns.Template(x =>
{ %>
<% if (SiteContext.Session.IsAdmin) {%>
<a href="javascript:void(0);" onclick= "DeleteDisposition('" + id +'");">Delete</a>
<% } %>
<%
}).Title("Delete")
.Width(80)
.Visible(SiteContext.Session.IsAdmin);
Can someone tell me what I am doing wrong here? I cannot figure this out. Thanks...