DataTable with Editable-Plugin not works as expected

DataTable with Editable-Plugin not works as expected

schildmischildmi Posts: 5Questions: 0Answers: 0
edited April 2013 in Plug-ins
Hello,

I'm working on a project with datatables. I need to edit the cells of a few cols. It generally works fine, but it is possible to edit more than one cell at the same moment. And this is not what I want.

I included the following files:

jquery-1.9.1.min.js
jquery-ui-1.10.1.custom.min.js
jquery.dataTables.js
jquery.dataTables.editable.js
jquery.jeditable.js
jquery.jeditable.datepicker.js

The debugcode is olisux.

Can anybody help me?

Thanks a lot!

schildmi

Replies

  • schildmischildmi Posts: 5Questions: 0Answers: 0
    edited April 2013
    Hello again,

    here ist the source of the table:

    dTable = $('#example1').dataTable({
    "bDestroy":true,
    "aaData":daten.auftragsdaten.aaData,
    "bSort":true,
    "bStateSave":true,
    "bProcessing":true,
    "bAutoWidth":false,
    "bJQueryUI": true,
    "sPaginationType":"full_numbers",
    "sDom":'rt<"bottom"iflp<"clear">>',
    "oLanguage":{"sUrl":"includes/sources/dataTables.german.txt"},
    "aoColumnDefs":[{"bSearchable":true,"bVisible":true,"aTargets":[0]}],
    "aoColumns":[
    {"mData":"PRNR", "aTargets":[0], sWidth:'10%',sClass:'alignRight odd readonly', "sDefaultContent": ""},
    {"mData":"SCHLNR", "aTargets":[1], sWidth:'10%',sClass:'alignRight odd readonly', "sDefaultContent": ""},
    {"mData":"SCHLNAME", "aTargets":[2], sWidth:'19%',sClass:'alignLeft odd readonly', "sDefaultContent": ""},
    {"mData":"GEPLANTAB", "aTargets":[3], sWidth:'10%',sClass:'alignCenter', "sDefaultContent": ""},
    {"mData":"GEZOGENAM", "aTargets":[4], sWidth:'10%',sClass:'alignCenter', "sDefaultContent": ""},
    {"mData":"GEZOGENVON", "aTargets":[5], sWidth:'10%',sClass:'alignLeft', "sDefaultContent": ""},
    {"mData":"LABORABGABEAM", "aTargets":[6], sWidth:'10%',sClass:'alignCenter', "sDefaultContent": ""},
    {"mData":"BEMERKUNGEN", "aTargets":[7], sWidth:'19%',sClass:'alignLeft', "sDefaultContent": ""},
    {"mData":"", "aTargets":[8], sWidth:'2%',sClass:'alignCenter',"bSortable":false, "sDefaultContent": ""}],
    "fnInitComplete": function() {
    $('#example1').css('width', '100%').dataTable().fnAdjustColumnSizing();
    $('#inprogress').hide();}
    }).makeEditable({
    sUpdateURL:"writedatevalue.php",
    "aoColumns":[
    null,
    null,
    null,
    {type:'datepicker', sClass:'hasDatepicker', onblur:"submit", placeholder : "" },
    {type:'datepicker', sClass:'hasDatepicker', onblur:"submit",placeholder : ""},
    {type:"textarea", placeholder : ""},
    {type:'datepicker', sClass:'hasDatepicker', onblur:"submit",placeholder : ""},
    {type:"textarea", placeholder : ""},
    null
    ]
    });
This discussion has been closed.