Add Edit link to each row and open up a partial view with that link (MVC)
Add Edit link to each row and open up a partial view with that link (MVC)
triven
Posts: 1Questions: 0Answers: 0
Hi there,
I am using the datatable with bootstrap and populating the values via ajax call, currently I have 2 columns I want to add edit and delete functionality to each row data (as it gets populate via ajax call) and on edit or on delete it should call a partial view.Below are the code snippets,Please help !!
[code]
Name
Properties
$(document).ready(function () {
processorContent();
});
function loadContent() {
$('#tblloadcontent').dataTable({
"sAjaxSource": "/Admin/Admin/AjaxHandler",
"bProcessing": true,
"aoColumns": [
{ "sName": "Name" },
{ "sName": "Properties" },
]
});
}
[/code]
Thanks
I am using the datatable with bootstrap and populating the values via ajax call, currently I have 2 columns I want to add edit and delete functionality to each row data (as it gets populate via ajax call) and on edit or on delete it should call a partial view.Below are the code snippets,Please help !!
[code]
Name
Properties
$(document).ready(function () {
processorContent();
});
function loadContent() {
$('#tblloadcontent').dataTable({
"sAjaxSource": "/Admin/Admin/AjaxHandler",
"bProcessing": true,
"aoColumns": [
{ "sName": "Name" },
{ "sName": "Properties" },
]
});
}
[/code]
Thanks
This discussion has been closed.
Replies
Allan
Allan