Questions tagged as 'jquery-datatables'

4
answers

DataTable does not sort correctly

I'm using the datatables plugin to render results in a table. The problem is that the first column has 3 dates: 26/11/2015 19/11/2015 03/12/2015 I need to sort the results of dataTables based on these dates. The correct would be fr...
asked by 29.11.2015 / 02:29
4
answers

Sort DateTime field of a DataTable

Hello. I have the following DataTable: success: function (data) { $('#table-controle').html(data); $('#table-controle').DataTable({ "language": { "url": "../../../Content/json/...
asked by 23.08.2016 / 15:13
1
answer

Sort column of datatable via query

I'm trying to sort my table by the field name of my database table, but the jquery (datatable) plugin insists on sorting by the id (first field of the table) How to force sorting through the query result, in the case sort by name?     
asked by 03.04.2014 / 19:19
1
answer

My site does not find the Bootstrap and Jquery files

I created a site ASP.NET MVC with Code First and made the first publish of the application, the database and the site were created, the problem is that the site does not find the files css and Jquery of Boot...
asked by 10.10.2016 / 16:18
1
answer

Datatables slow [closed]

I'm using datatables, but it takes a long time to load with many records. Is it possible to improve this loading of 5,985 records? See my code: <div class="row"> <div class="col-xs-12"> <div class=...
asked by 28.11.2014 / 16:30
2
answers

Bring the columns of the DataTable by the Datatabe Ajax itself

Is there a way to bring the columns of the DataTable through the API from Ajax? As an example we have this code $(document).ready(function() { $('#example').DataTable( { "processing": true, "serverSide": true, "ajax...
asked by 02.08.2018 / 20:50
2
answers

Mount DataTables with Repeater

I'm setting a DataTables jQuery with repeater ASP.NET C# . What am I doing wrong? I have used the code. <body> <form id="form1" runat="server"> <div> <asp:Repeater ID="rptMeusDados"...
asked by 16.07.2014 / 14:38
1
answer

jQuery DataTables numeric ordering in column containing hidden HTML

By using jQuery DataTables , we can indicate the desired sort order : $('#example').dataTable( { "aoColumnDefs": [ { "sType": "numeric", "aTargets": [ 0 ] } ] }); But if HTML is present, hidden or not, the sort order of numeric...
asked by 20.12.2014 / 18:26
1
answer

dataTables - Add and preserve CSS class to the last column of each row

To add a CSS class to the last column of each row, I use the following method: var dataTablesOptions = { 'columnDefs': [ { targets: -1, className: 'text-center' } ], // ... }; $('#minhaTabela').DataTable( dataTablesOptions ); The...
asked by 18.10.2017 / 18:32
1
answer

How do I create a DataTable that has a dynamic column structure?

Hello, I need to create a DataTable in my MVC project that does not have predefined columns. The number of columns must be defined from the amount of data in a DB field. I have a field in my Model that is called Low Tier Id, it is an FK from...
asked by 14.08.2018 / 14:55