User selectable rows (multiple rows) don't work
User selectable rows (multiple rows) don't work
Hi everybody,
I've a little issue with the example follow : User selectable rows (multiple rows)
I want just to have the selected rows. I use jQuery to add class on with this code :
[code]
$(document).ready(function() {
$(
function()
{
$("#tabCollab tr").hover(
function()
{
$(this).removeClass('bleuclair blanc').addClass("highlight");
},
function()
{
$(this).removeClass('highlight').addClass(this.rowIndex % 2 == 0 ? "blanc" : "bleuclair");
}
)
}
)
});
[/code]
After i initialize my datatable :
[code]
var oTable;
$(document).ready(function() {
if($('#no_result').length){
}else {
// Mise en place du datatable
oTable = $('#tabCollab').dataTable( {
"sPaginationType": "full_numbers",
/*"bLengthChange":false,*/
"bStateSave":false,
"oLanguage": {
"sLengthMenu": "Affichage _MENU_ enregistrements par page",
"sZeroRecords": "Aucun enregistrement trouv
I've a little issue with the example follow : User selectable rows (multiple rows)
I want just to have the selected rows. I use jQuery to add class on with this code :
[code]
$(document).ready(function() {
$(
function()
{
$("#tabCollab tr").hover(
function()
{
$(this).removeClass('bleuclair blanc').addClass("highlight");
},
function()
{
$(this).removeClass('highlight').addClass(this.rowIndex % 2 == 0 ? "blanc" : "bleuclair");
}
)
}
)
});
[/code]
After i initialize my datatable :
[code]
var oTable;
$(document).ready(function() {
if($('#no_result').length){
}else {
// Mise en place du datatable
oTable = $('#tabCollab').dataTable( {
"sPaginationType": "full_numbers",
/*"bLengthChange":false,*/
"bStateSave":false,
"oLanguage": {
"sLengthMenu": "Affichage _MENU_ enregistrements par page",
"sZeroRecords": "Aucun enregistrement trouv
This discussion has been closed.
Replies
It's seems to work fine now.
Thanks.