yash-arsenal / jquery-datatables-editable

Automatically exported from code.google.com/p/jquery-datatables-editable
0 stars 0 forks source link

Popup edit window doesn't show #157

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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-ac
tions.html
1. In user-side mode everything works perfekt.
2. When I'm changing mode to server-side and insert button code into cell (with 
"aoColumnDefs" function) nothing works.

Here is my script 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 '<button type="button" class="table-action-EditPlatforms">Hasło</button>';
                }
            }]

        }).makeEditable({
            aoColumns: [null, null, null, null],
        aoTableActions: [
                    {
                        sAction: "EditPlatforms"
                    }
        ]
        });

And table code:
<table id="example" class="display">
      <thead>
             <tr>
                 <th>ID</th>
                 <th>Company name</th>
                 <th>Address</th>
                 <th>Town</th>
             </tr>
      </thead>
      <tbody>                  
      </tbody>
</table>

Original issue reported on code.google.com by tomasz.k...@gmail.com on 21 Aug 2013 at 1:19