Questions tagged as 'datatables'

1
answer

How to define the width of a table and its th? so they look the same in Google Chrome and Firefox

I'm doing a project where I show different tables and I want to define the width of the tables and their th, in Google Chrome it works correctly but when I try it in Firefox I do not take into account the width of the table <link rel=...
asked by 02.04.2018 / 20:10
1
answer

Make several AJAX calls and fill a Datatable with these calls

I'm trying to fill a Datatable with the 87 Star Wars characters, for this I'm doing Ajax calls and I put them in the Datatble, the problem is that the API pulls ten characters using a JSON for each url and I can use rods called to get the 87, wh...
asked by 05.04.2018 / 16:52
1
answer

DataTables I can not modify the width of the columns

I'm making a table using Datatables but I can not change the widths of the columns. /*Modificar funciones tabla listado*/ $(document).ready(function() { $("#table_id").DataTable({ sDom: '<"top"fli>t<"bottom"p><"cl...
asked by 14.03.2018 / 11:14
1
answer

Uncaught TypeError: Can not read property 'length' of undefined [json, ajax and DataTables]

I can not show the data in my table. With the following index I send the data of my table by json: public function index(Request $request) { if ($request->ajax()) { $modelos = Modelos::all(); return response()->...
asked by 27.04.2017 / 23:22
1
answer

how to create a switch case within a path in DATATABLES?

I'm painting the data brought from the database in datatables , the problem is that I need to validate a data to be able to paint a badge in the GUI , and I look for the way to do with a switch since if I use a if...
asked by 26.04.2017 / 16:21
1
answer

Implement DataTables.net

I am implementing DataTables.net but it is not doing the paging, I am working with ASP.NET MVC 5, the code I handle is as follows. @{ ViewBag.Title = "Proveedor"; } <h2>Proveedor</h2> <html xmlns="http://www.w3.org/1999/xhtml"&...
asked by 14.02.2017 / 19:39
3
answers

How to insert a select in a table (Datatables)?

Use datatables to list data brought from a DB but I need to insert a select (drop-down list) in one column of the rows try this way but it did not work. var users = $('#users').DataTable( {}); $.ajax({ url: 'users'...
asked by 28.02.2017 / 16:30
1
answer

Problem with DataTable

What happens is that when you refresh the page you create a product automatically (it is the last product you enter), that is, you are inserting it when you refresh the page repeatedly, and the other problem is that when you just entered the sec...
asked by 19.10.2018 / 14:59
1
answer

How to make the lazy loading of a datatable work?

I currently use a library to make my datatable, which gives me many options to configure my table and what I understand one of them is the recharge option by necessity, this means that I will load my data from the bd as I go moving in the table...
asked by 21.05.2018 / 19:20
1
answer

DataTables warning: table id = T_Pd - Invalid JSON response

I have the JSON invalid response problem but the answer is correct. My problem is that I want to bring data to a JQuery DataTable, by means of an AJAX query sending 3 parameters. the part that fails is when it brings the answer in JSON format...
asked by 05.06.2017 / 22:36