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

[Solved] ClientSide ActionLink for Telerik Grid

1 Answer 58 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
darren
Top achievements
Rank 1
darren asked on 13 Jun 2011, 06:46 PM
Hi,
What am trying to achieve is to get a jquery modal popup from the existing code - through ActionLink in telerik grid, but am missing the syntax, if someone could help out please

this actionlink works perfectly bringing out the Modal.
<%: Html.ActionLink("Edit", "DemoEdit", new { xid = item.Userid }, new { @class = "abookModal", title = "Edit Person" })%>

and so I embedded this into telerik grid, as in client side.
.Columns(columns =>
 {
        columns.Bound(e => e.Userid);
        columns.Bound(e => e.Name);
        columns.Bound(e => e.Phone);
        columns.Bound(e => e.Email);
        columns.Bound(e => e.Userid)
            .ClientTemplate(Html.ActionLink("Edit", "DemoEdit", new { xid = "<#= Userid #>" }).ToString(), new { @class = "abookModal", title = "Edit Person" });
 })

the very last part starting from
new { @class = "abookModal", title="Edit Person"} wouldn't be taken in because "No overload for method 'ClientTemplate' take 2 arguments.

Any solution to this?

1 Answer, 1 is accepted

Sort by
0
darren
Top achievements
Rank 1
answered on 13 Jun 2011, 10:01 PM
problem solved. this is a retard question, please ignore, i obviously passed the argument at the wrong place and didn't realize.
Tags
General Discussions
Asked by
darren
Top achievements
Rank 1
Answers by
darren
Top achievements
Rank 1
Share this question
or