ma94264 / jquery-datatables-editable

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

sWidth and mRender problem #140

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Hello
here is a part of my 

$(document).ready( function () {
$('#example').dataTable({
"bProcessing": true,
"bServerSide": true,
"aoColumnDefs": [
{
"mRender": function ( data, type, row ) {
 return '*****'; //  to hide the value but to be able to modify it
  },
  "aTargets": [ 6 ]
},

(... other code ...)

{ "sTitle": "Société", "aTargets": [ 3 ] },
{ "sWidth": "20%", "aTargets": [ 3 ] },
{ "sName": "user_co", "aTargets": [ 3 ] },

(... other code ...)

"sAjaxSource": "requete.php",   
                                      }
                                    ).makeEditable({

                                    sUpdateURL: "editable_ajax.php",

                                    "aoColumns": [
                                    // col 0 ID
                                    null,
                                    // col 1
                                    { tooltip: 'Double clic pour modifier le nom',
                                    },
                                    // col 2
                                    { tooltip: 'Double clic pour modifier le prénom',
                                    sName: "user_fname" },
                                    // col 3

                                    {
                                        indicator: 'Sauvegarde de la société...',
                                        tooltip: 'Double clic pour modifier la société',
                                        loadtext: 'loading...',

                                    },
                                    // col 4
                                    { tooltip: 'Double clic pour modifier l\'email' },
                                    // col 5
                                    { tooltip: 'Double clic pour modifier le login' },
                                    // col 6
                                    { tooltip: 'Double clic pour modifier le mot de passe' },
                                    // col 7
                                    null,
                                    // col 8
                                    null,

                                    ]
                                        });
            } );

</script>

What is the expected output? What do you see instead?

Neither the sWidth parameter nor the mRender parameter work
sName works well though

What version of the product are you using? On what operating system?

Mac, Safari, FireFox

Thanks a lot

Serge

Original issue reported on code.google.com by sergehip...@gmail.com on 25 Nov 2012 at 7:32