जोड़ने के लिए कैसे मैं पिछले कुछ घंटों की खोज कर रहा हूं, और दुर्भाग्यवश मुझे एक एडिट एडिट के साथ डेटाटेबल को पॉप्युलेट करने और .NET और MVC का उपयोग करके लिंक कॉलम हटाने का उदाहरण नहीं मिल रहा है।jquery datatables actionlink
यहां मेरे पास अभी तक है, मैं एक एक्शन लिंक कैसे जोड़ूं? मैं क्या खो रहा हूँ?
<script type="text/javascript">
$(document).ready(function() {
$('#myDataTable').dataTable({
bProcessing: true,
sAjaxSource: '@Url.Action("Index1", "Default1")'
});
});
</script>
<div id="container">
<div id="demo">
<table id="myDataTable">
<thead>
<tr>
<th>
RoleId
</th>
<th>
RoleName
</th>
<th>
UserId
</th>
<th>
UserName
</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
मैं इसे अंतिम कॉलम में जोड़ना चाहता हूं;
<td>
@Html.ActionLink("Edit", "Edit", new {id=item.PrimaryKey}) |
@Html.ActionLink("Details", "Details", new { id=item.PrimaryKey }) |
@Html.ActionLink("Delete", "Delete", new { id=item.PrimaryKey })
</td>
लेकिन यह नहीं पता कि इसे कैसे किया जाए।
"fnRender" मान्य नहीं है। इसके बजाय "mRender" का प्रयोग करें। http://www.datatables.net/usage/columns – asunrey