Search
1494 results 71-80
Forum
- 10th Aug 2023Modificar el tamaño de la filas y columnas en la datatableEn que parte del codigo, o que instruccion se utiliza, para modificar el tamaño de las filas y/o columnas en la datatable Este es mi codigo actual $(document).ready(function() { var funcion='listar'; $('#example').DataTable({ fixedColumns: { heightMatch: 'none' }, scrollCollapse: true, scrollX: true, scrollY: 450, //scrollY: '350px', dom: 'Bfrtip', buttons: ['copy', 'csv', 'excel', 'pdf', 'print', 'colvis'], "sDom": 't', "bJQueryUI": true, "pageLength": 25, //cantidad de registros a mostrar "ajax": { "url": "controlador/Cat_CatequistaController.php", "method": "POST", "data":{funcion:funcion} }, "columns": [ { "data": "id_catequista" }, { "data": "cat_nombre" }, { "data": "domicilio" }, { "data": "telefono1" }, { "data": "telefono2" }, { "data": "correo1" }, { "data": "correo2" }, { "data": "id_centro" }, { "data": "centro_nombre" }, { "defaultContent": `Editar Eliminar` } ], "language": espanol }); $('#example tbody').on('click','.editar', function(){ let data = datatable.row($(this).parents()).data(); $('#nombre_catequista').val(data.nombre); $('#id_catequista').val(data.id_catequista); }) $('#form-editar').submit(e=>{ let id_catequista =$('#id').val(); let nombre=$('#nombre_catequista').val(); funcion='editar'; $.post('controlador/Cat_CatequistaController.php',{id_catequista,nombre,funcion},(response)=>{ }) }) $('#example tbody').on('click','.eliminar', function(){ let data = datatable.row($(this).parents()).data(); $('#catequista_eliminar').html(data.nombre); $('#id_catequista').val(data.id); }) $('#form-eliminar').submit(e=>{ let id_catequista =$('#id_catequista').val(); funcion='eliminar'; $.post('controlador/Cat_CatequistaController.php',{id_catequista,funcion},(response)=>{ }) }) } ); let espanol = { "sProcessing": "Procesando...", "sLengthMenu": "Mostrar _MENU_ registros", "sZeroRecords": "No se encontraron resultados", "sEmptyTable": "Ningún dato disponible en esta tabla", "sInfo": "Mostrando registros del _START_ al _END_ de un total de _TOTAL_ registros", "sInfoEmpty": "Mostrando registros del 0 al 0 de un total de 0 registros", "sInfoFiltered": "(filtrado de un total de _MAX_ registros)", "sInfoPostFix": "", "sSearch": "Buscar:", "sUrl": "", "sInfoThousands": ",", "sLoadingRecords": "Cargando...", "oPaginate": { "sFirst": "Primero", "sLast": "Último", "sNext": "Siguiente", "sPrevious": "Anterior" }, "oAria": { "sSortAscending": ": Activar para ordenar la columna de manera ascendente", "sSortDescending": ": Activar para ordenar la columna de manera descendente" }, "buttons": { "copy": "Copiar", "print": "Imprimir", "colvis": "Visibilidad" } };
- 8th Apr 2019Scroll Y issues ,below errorUncaught TypeError: n.match is not a function at h (jquery?v=Dc6odCx5Sa6X-9UlUnDnFTPi5C7-153uEUhmI83Eqww1:1) at i.fn.init.yi (jquery?v=Dc6odCx5Sa6X-9UlUnDnFTPi5C7-153uEUhmI83Eqww1:1) at jquery?v=Dc6odCx5Sa6X-9UlUnDnFTPi5C7-153uEUhmI83Eqww1:1 at Function.map (jquery?v=Dc6odCx5Sa6X-9UlUnDnFTPi5C7-153uEUhmI83Eqww1:1) at o (jquery?v=Dc6odCx5Sa6X-9UlUnDnFTPi5C7-153uEUhmI83Eqww1:1) at ut (jquery?v=Dc6odCx5Sa6X-9UlUnDnFTPi5C7-153uEUhmI83Eqww1:1) at ot (jquery?v=Dc6odCx5Sa6X-9UlUnDnFTPi5C7-153uEUhmI83Eqww1:1) at gt (jquery?v=Dc6odCx5Sa6X-9UlUnDnFTPi5C7-153uEUhmI83Eqww1:1) at c (jquery?v=Dc6odCx5Sa6X-9UlUnDnFTPi5C7-153uEUhmI83Eqww1:1) at HTMLTableElement. (jquery?v=Dc6odCx5Sa6X-9UlUnDnFTPi5C7-153uEUhmI83Eqww1:1)
- 10th Nov 2017in datatable tbody Y scroll should show outside but it is showing inside how to scroll outsidehow to add image in this it is asking for url only and if i add code it is showing very huge code
- 29th Oct 2014sLoadingRecords y sEmptyTable no workingHi, I am using Datatable and profit not to run the following properties. As I understand sLoadingRecords should show a message while the data is loaded and sEmptyTable should show a message in the absence of data for the query. I would appreciate any help. Thank you very much. This is the code I used: $(document).ready(function() { var param = document.getElementById('valorCD').value; var urlparam = "./Entidades/process.php?CD="+param; $.ajax({ url: urlparam, type: 'post', data: { tagA: 'getData'}, dataType: 'json', success: function (data) { if (data.success) { $.each(data, function (index, record) { if ($.isNumeric(index)) { var row = $(""); $("").text(record.EAN).appendTo(row); $("").text(record.Categoria).appendTo(row); $("").text(record.Marca).appendTo(row); $("").text(record.Empaque).appendTo(row); $("").text(record.Bottler_Size_Liter).appendTo(row); $("").text(record.Bottler_Size_Unit).appendTo(row); $("").text(record.Sale_Unit_Per_Pack).appendTo(row); $("").text(record.Pack_Por_Capas).appendTo(row); $("").text(record.Capas_Por_Pallets).appendTo(row); $("").text(record.Pallet_Height).appendTo(row); $("").text(record.Pack_por_Pallet).appendTo(row); $("").text(record.MOQ).appendTo(row); $("").text(record.Unidad_Incremental).appendTo(row); row.appendTo("#table1"); } }) } $('#table1').dataTable({ //"bJQueryUI": true, //"bAutoWidth" : false, //"pagingType": "full_numbers", //"scrollY": 300, //"scrollX": true, "bJQueryUI": true, "pagingType": "full_numbers", "scrollY": 300, "scrollX": true, "oLanguage": { "sLengthMenu": "Mostrar _MENU_ filas por pagina", "sZeroRecords": "Datos no encontrados", "sInfo": "Mostrando _START_ a _END_ de _TOTAL_ filas", "sInfoEmpty": "Sin entradas para mostrar", "sInfoFiltered": "", "sSearch": "Buscar", "sProcessing": "Buscando...", "sLoadingRecords": "Por favor espere - Cargando...", "sEmptyTable": "No se obtuvieron datos", "oPaginate": { "sFirst": "Primera", "sPrevious": "Anterior", "sNext": "Siguiente", "sLast": "Ultima" } } }) } }); })
- 19th Sep 2013"Showing x to y of y" numbers off in print view with ScrollerI'm using Scroller to load all the results for a report I need to run. The people I'm running the report for want a "Showing 1 to 100 of 100 entries" message to show at the bottom of the print view, like how it does on the normal table page. I've made sure the footer message displays when changing to the print view. The problem is that the message doesn't update to reflect the newer values (like "15 to 45 of 100" instead of "1 to 100 of 100"). Any ideas on how I could make sure the message displays the right numbers?
- 23rd Aug 2012SOLVED: "Showing records x to y" - adjusting the marginI have several datatables in a Bootstrap 2 accordion. At some point, the record count at the bottom of the table's left margin got "broken", and it now is hidden by the accordion. I have tried to see what the CSS class is for this block with no luck - anyone able to point me in the right direction so I can apply some padding while I resolve the issue? Sigh, just found it.
- 23rd Jan 2026Fixed Header is not aligning correctly vertically on scroll in small screensno respetan esa configuración y ajustan automáticamente su ancho,
- 9th Dec 2025Serverside table data returned from Editor PHP library is now always sorted by the 1st column.row) { if(data == true) { return "Y"; } else { return "N"; }; }, className:
- 22nd Sep 2025SearchBuilder.getDetails()un campo de importe y añado condicion Ej: igual
- 16th Sep 2025Accessibility Issue: Semantic Structure and Screen Reader Behavior in ScrollX Tablestable body (x and y scrolling). It is infuriating.