datatables scrolly not working correectly
datatables scrolly not working correectly
paradita85
Posts: 16Questions: 0Answers: 0
hello i have a problem using scrolly in datatables jquery plugin. I have this code:
tablacliente = $('#tablacliente').dataTable( {
"bJQueryUI": true,
"sScrollY": "1650px",
"bPaginate": false,
"bScrollCollapse": true,
"aoColumns": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
{ sWidth: '30%'}
],
"oLanguage": espanol
} )
but table no show correctly the table scroolly with 10 records.if the table does not exceed 1650 px should not show any scroll table image:
http://www.subirimagenes.com/imagen-capturadepantalla-8267306.html
thanks.
tablacliente = $('#tablacliente').dataTable( {
"bJQueryUI": true,
"sScrollY": "1650px",
"bPaginate": false,
"bScrollCollapse": true,
"aoColumns": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
{ sWidth: '30%'}
],
"oLanguage": espanol
} )
but table no show correctly the table scroolly with 10 records.if the table does not exceed 1650 px should not show any scroll table image:
http://www.subirimagenes.com/imagen-capturadepantalla-8267306.html
thanks.
This discussion has been closed.
Replies
Also, what browser and version are you using? And what DataTables version?
Allan
the table contains 10 record :
{% trans %}Id{% endtrans %}
{% trans %}Nombre{% endtrans %}
{% trans %}Apellido1{% endtrans %}
{% trans %}Apellido2{% endtrans %}
{% trans %}Dirección{% endtrans %}
{% trans %}Localidad{% endtrans %}
{% trans %}Provincia{% endtrans %}
{% trans %}Email{% endtrans %}
{% trans %}Movil{% endtrans %}
{% trans %}Acciones{% endtrans %}
{% for entity in entities %}
{{ entity.id }}
{{ entity.nombre |capitalize }}
{{ entity.apellido1 |capitalize }}
{{ entity.apellido2 |capitalize }}
{{ entity.direccion |capitalize }}
{{ entity.localidad |capitalize }}
{{ entity.provincia |capitalize }}
{{ entity.email }}
{{ entity.movil }}
{% trans %}Venta{% endtrans %}
{% trans %}Reserva{% endtrans %}
{% trans %}Devolución{% endtrans %}
{% trans %}Editar{% endtrans %}
{% endfor %}
{% trans %}Id{% endtrans %}
{% trans %}Nombre{% endtrans %}
{% trans %}Apellido1{% endtrans %}
{% trans %}Apellido2{% endtrans %}
{% trans %}Dirección{% endtrans %}
{% trans %}Localidad{% endtrans %}
{% trans %}Provincia{% endtrans %}
{% trans %}Email{% endtrans %}
{% trans %}Movil{% endtrans %}
{% trans %}Acciones{% endtrans %}
y datatable init is:
tablacliente = $('#tablacliente').dataTable( {
"bJQueryUI": true,
"sScrollY": "1650px",
"bPaginate": false,
"bScrollCollapse": true,
"aoColumns": [
null,
null,
null,
null,
null,
null,
null,
null,
null,
{ sWidth: '30%'}
],
"oLanguage": espanol
} )
thanks allan
The best I can do is try to reconstruct your example - which appears to work just fine for me: http://live.datatables.net/uteqaw/edit#javascript,html .
code:
{% trans %}Venta{% endtrans %}
{% trans %}Reserva{% endtrans %}
{% trans %}Devolución{% endtrans %}
{% trans %}Editar{% endtrans %}
javascript :
$(".botonescliente").button();
i insert buttons but no working Sscrolly correctly with buttons. sorry my english.