Edit cell value in popup window
Edit cell value in popup window
antekszpieg
Posts: 3Questions: 0Answers: 0
Hi,
I'm using MVC 4 and I want to implement actions buttons with this: http://jquery-datatables-editable.googlecode.com/svn-history/r187/trunk/table-actions.html
In user-side mode everything works perfekt.
But when I'm changing mode to server-side and insert button code into cell (with "aoColumnDefs" function) nothing works.
Mayby I should add button in other way?
This is my code, can you help me guys?
[code]
$(document).ready(function () {
$('#example').dataTable(
{
"bServerSide": true,
"sAjaxSource": "Work/AjaxHandler",
"bProcessing": true,
"sPaginationType": "full_numbers",
"aoColumnDefs": [{
"aTargets": [0],
"mData": 0,
"mRender": function (data, type, full) {
return 'Hasło';
}
}]
}).makeEditable({
aoColumns: [null, null, null, null],
aoTableActions: [
{
sAction: "EditPlatforms"
}
]
});
[/code]
[code]
ID
Company name
Address
Town
[/code]
I'm using MVC 4 and I want to implement actions buttons with this: http://jquery-datatables-editable.googlecode.com/svn-history/r187/trunk/table-actions.html
In user-side mode everything works perfekt.
But when I'm changing mode to server-side and insert button code into cell (with "aoColumnDefs" function) nothing works.
Mayby I should add button in other way?
This is my code, can you help me guys?
[code]
$(document).ready(function () {
$('#example').dataTable(
{
"bServerSide": true,
"sAjaxSource": "Work/AjaxHandler",
"bProcessing": true,
"sPaginationType": "full_numbers",
"aoColumnDefs": [{
"aTargets": [0],
"mData": 0,
"mRender": function (data, type, full) {
return 'Hasło';
}
}]
}).makeEditable({
aoColumns: [null, null, null, null],
aoTableActions: [
{
sAction: "EditPlatforms"
}
]
});
[/code]
[code]
ID
Company name
Address
Town
[/code]
This discussion has been closed.
Replies
Allan