This is a migrated thread and some comments may be shown as answers.

columns.Template

0 Answers 40 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 07 Aug 2012, 08:37 PM
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...

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Greg
Top achievements
Rank 1
Share this question
or