two tables - accordion
two tables - accordion
guillermovil
Posts: 20Questions: 5Answers: 0
(ver: 1.9.1)
hello! I have two tables on the same page each within an accordion. The first works fine but the second does not show the toolbar with the number of rows and filters.
[code]
Preguntas
<?php if($vigenteDesde == 1){ ?>
Nuevo registro
<?php } ?>
CODIGO
PREGUNTA
OBLIGATORIO
<?php if($vigenteDesde == 1){ ?>
EDIT
DEL
<?php } ?>
CODIGO
PREGUNTA
OBLIGATORIO
<?php if($vigenteDesde == 1){ ?>
EDIT
DEL
<?php } ?>
Conceptos a clasificar
<?php if($vigenteDesde == 1){ ?>
Nuevo concepto a clasificar
<?php } ?>
CODIGO CONCEPTO
CONCEPTO
PONDERACION
<?php if($vigenteDesde == 1){ ?>
DEL
<?php } ?>
CODIGO CONCEPTO
CONCEPTO
PONDERACION
<?php if($vigenteDesde == 1){ ?>
DEL
<?php } ?>
<!--end accordion-->
[/code]
.js
[code]
...
oTable = $('#tabladatos').dataTable( {
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"bAutoWidth": false,
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "grid_preguntas_procesar.php?vac_codigo="+ vac_codigo,
"fnRowCallback": function( nRow, aData, iDisplayIndex ) {
var pregunta = aData[1];
$('td:eq(1)', nRow).html( pregunta.substring(0,200) );
},
"aoColumns": [
{ "sName": "preg_id", "sWidth": "150px"},
{ "sName": "preg_pregunta"},//, "sWidth": "50px","bSearchable": true
{ "sName": "preg_caracter", "sWidth": "100px","bSearchable": false},//, "sWidth": "50px","bSearchable": true
{ "sName": "preg_id", "sClass": "center","sWidth": "8px", fnRender: make_edit_link, "bSortable": false, "bSearchable": false },
{ "sName": "preg_id", "sClass": "center","sWidth": "8px", fnRender: make_delete_link, "bSortable": false, "bSearchable": false }]
} );
...
oTableClas = $('#tablaclasifica').dataTable( {
"bJQueryUI": true,
"bAutoWidth": false,
"bProcessing": true,
"bServerSide": true,
"bFilter": false,
"bLengthChange": false,
"bPaginate": false,
"sAjaxSource": "grid_clasifica_procesar.php?vac_codigo="+ vac_codigo,
"fnFooterCallback": function ( nRow, aaData, iStart, iEnd, aiDisplay ) {
var iTotal = 0;
for ( var i=0 ; i
hello! I have two tables on the same page each within an accordion. The first works fine but the second does not show the toolbar with the number of rows and filters.
[code]
Preguntas
<?php if($vigenteDesde == 1){ ?>
Nuevo registro
<?php } ?>
CODIGO
PREGUNTA
OBLIGATORIO
<?php if($vigenteDesde == 1){ ?>
EDIT
DEL
<?php } ?>
CODIGO
PREGUNTA
OBLIGATORIO
<?php if($vigenteDesde == 1){ ?>
EDIT
DEL
<?php } ?>
Conceptos a clasificar
<?php if($vigenteDesde == 1){ ?>
Nuevo concepto a clasificar
<?php } ?>
CODIGO CONCEPTO
CONCEPTO
PONDERACION
<?php if($vigenteDesde == 1){ ?>
DEL
<?php } ?>
CODIGO CONCEPTO
CONCEPTO
PONDERACION
<?php if($vigenteDesde == 1){ ?>
DEL
<?php } ?>
<!--end accordion-->
[/code]
.js
[code]
...
oTable = $('#tabladatos').dataTable( {
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"bAutoWidth": false,
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "grid_preguntas_procesar.php?vac_codigo="+ vac_codigo,
"fnRowCallback": function( nRow, aData, iDisplayIndex ) {
var pregunta = aData[1];
$('td:eq(1)', nRow).html( pregunta.substring(0,200) );
},
"aoColumns": [
{ "sName": "preg_id", "sWidth": "150px"},
{ "sName": "preg_pregunta"},//, "sWidth": "50px","bSearchable": true
{ "sName": "preg_caracter", "sWidth": "100px","bSearchable": false},//, "sWidth": "50px","bSearchable": true
{ "sName": "preg_id", "sClass": "center","sWidth": "8px", fnRender: make_edit_link, "bSortable": false, "bSearchable": false },
{ "sName": "preg_id", "sClass": "center","sWidth": "8px", fnRender: make_delete_link, "bSortable": false, "bSearchable": false }]
} );
...
oTableClas = $('#tablaclasifica').dataTable( {
"bJQueryUI": true,
"bAutoWidth": false,
"bProcessing": true,
"bServerSide": true,
"bFilter": false,
"bLengthChange": false,
"bPaginate": false,
"sAjaxSource": "grid_clasifica_procesar.php?vac_codigo="+ vac_codigo,
"fnFooterCallback": function ( nRow, aaData, iStart, iEnd, aiDisplay ) {
var iTotal = 0;
for ( var i=0 ; i
This discussion has been closed.