Grid - Action column with Ajax.ActionLink

Is it possible to use @Ajax.ActionLink in a Action Column ? do you have a sample ? I would like to add a EDIT column :
@model EditBtn
@Ajax.ActionLink("Edit", "Edit", "Company", new AjaxOptions { InsertionMode = InsertionMode.Replace, UpdateTargetId = "page-wrapper"}, new { id = Model.Id.ToString()})
this action have to call /Company/Edit?id=xx but thi is my firebug..
<td>
<div class="awe-il"><a class="btn" id="4818" href="/CompanyGrid/Edit?Length=7" data-ajax-update="#page-wrapper" data-ajax-mode="replace" data-ajax="true">Edit</a>
</div>
</td>    
CompanyGrid is the name of the grid not the controller
owner
mtugnoli
asked at 21 Jan 2014

Answers 

please Sign In to leave an answer

By accessing this site, you agree to store cookies on your device and disclose information in accordance with our cookie policy and privacy policy .
contact us