Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82040

sWidth and mRender problem with makeEditable

$
0
0
Hello
here is a part of my code :

$(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,
									
									]
										});
			} );




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



Thanks a lot

Serge

Viewing all articles
Browse latest Browse all 82040

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>