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

Ajax.ActionLink in Grid

1 Answer 40 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mark Shortt
Top achievements
Rank 1
Mark Shortt asked on 30 May 2011, 09:01 AM
Hi

I'm trying to add a custom column with an Ajax.Actionlink in an MVC Grid, using Razor pages.

The code I've managed to piece together from samples is as follows:

  columns.Template(
                @<text>
                @Ajax.ActionLink("Edit""_MenuItems"new { key = item.id }, new AjaxOptions { Confirm = "Delete this Customer?", UpdateTargetId = "CustomerTable", HttpMethod = "_MenuItems" })
                </text>
                ).Title("Edit");

However, when I run the project nothing is displayed in the columns cells

Can someone suggest where I might be going wrong?

Thanks

Mark

1 Answer, 1 is accepted

Sort by
0
Mark Shortt
Top achievements
Rank 1
answered on 30 May 2011, 11:09 AM
Please ignore, found a problem int the controller that was stopping the ID field being populated

Tags
Grid
Asked by
Mark Shortt
Top achievements
Rank 1
Answers by
Mark Shortt
Top achievements
Rank 1
Share this question
or