ahsanjr / jquery-datatables-editable

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

column indexes off by one in IE8 when using jEditable #61

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an editable DataTable using this code:
        $(function () {
            var oTable = $("#PhoneList").dataTable(
                {
                    "bLengthChange": false,
                    "bPaginate": false,
                    "aoColumnDefs": [{ "bSearchable": false, "bVisible": true, "aTargets": [5]}],
                    "aaSorting": [[0, "asc"]],
                    "sDom": 'T<"clear">lfrtip',
                    "oTableTools": {
                         "sSwfPath": "/Scripts/copy_cvs_xls_pdf.swf"
                         } 
                 });
                oTable.makeEditable(
                {
                    "sUpdateURL": "/UpdateData",
                    "aoColumns": [
                    null, 
                    null, 
                    {  placeholder : '&nbsp;', submit: 'OK' }, 
                    {  placeholder : '&nbsp;', submit: 'OK' },  
                    {  placeholder : '&nbsp;', submit: 'OK' }, 
                    {  data   : " {'Cell':'Cell','Home':'Home','Work':'Work'}",
                         type   : 'select',
                         submit : 'OK', 
                         onblur : 'submit'
                    }, 
                    { placeholder: '&nbsp;', submit: 'OK', cssclass:'email' } 

                    ]
                });

            new FixedHeader(oTable);
        });

What is the expected output? What do you see instead?
(In this answer, I'm using 0-based indexes.)
   On Chrome, columns 2, 3, 4, and 5 are editable, with 5 using a drop-down. 
   On IE8, columns 1, 2, 3, and 4 are editable, with 4 using a drop-down. 

Original issue reported on code.google.com by grahampc...@gmail.com on 7 Sep 2011 at 3:26

GoogleCodeExporter commented 9 years ago
Hi,

I have fixed similar issue in the 2.0.4 so could you try it with this version? 
I cannot reproduce the problem you have reported. Please reopen this issue if 
you still have a problem with the latest version.

Jovan

Original comment by joc...@gmail.com on 29 Sep 2011 at 8:42