Questions tagged as 'jquery-datatables'

1
answer

Leave line always at the top

I'm using the DataTables plugin and wanted a line to always be at the top of the sorting order or the search that was done as if it had a static "position", always first Does anyone know how I can do this?     
asked by 14.08.2015 / 20:58
1
answer

Keep table with minimum height

I'm creating a table using Datatables , but I'd like to keep a minimum height even when I have at least one record. <table id="example" class="table table-striped table-bordered" cellspacing="0" width="100%"> <thead> &...
asked by 11.05.2015 / 20:04
2
answers

Add image in DataTables according to state

I'm going round here with DataTables and I'd like to add a status type to a% coso. If the value is img put an image and be 0 put another image in row .     
asked by 12.08.2015 / 13:53
2
answers

JQuery DataTables - Custom Header

I researched a lot and could not figure out how to customize the pdf report header that I generated from the plugin; For example, the "sTitle": "Groups" is the title that is in the header, but it comes out with the default styling of the plugin,...
asked by 09.06.2014 / 20:45
1
answer

How do I update a row in the datatable with jquery? [closed]

I have the following code working to add a row to the table dynamically var NovaLinha = [usuario,email,senha,ativo,acao]; NovaLinha.id = retorno; $('#tabela').DataTable().row.add(NovaLinha).draw(); Now I want to change it too with jquery an...
asked by 22.02.2015 / 19:19
1
answer

Datatable Server Side with JOIN [closed]

Good evening! I started using Datatable recently, I'm using it with the server-side feature. I need to relate 2 tables with INNER JOIN, I saw that there is a "difficulty" in doing this type of procedure in the case of server-side. I even foun...
asked by 11.07.2018 / 02:12
2
answers

Select row in datatable and get id

In jquery datatable how do I select a single row and get the value of a particular column, such as id? link     
asked by 23.09.2014 / 23:36
1
answer

How to disable a datatable at the time of printing

The page has a datatables link , I would like to hide the items that are created by it at the time of printing, example: search field, paging etc. My datatable looks like this: <script> $(document).ready(function () { $('...
asked by 19.11.2018 / 17:08
1
answer

Sort by a specific value

I'm using the DataTables plugin and in a column I have the following structure JSFIDDLE And by default the plugin creates the default sort order of which I do not know which rule obeys, I would like that when clicking on that column...
asked by 08.07.2015 / 19:53
1
answer

How to get the values from a table?

My question is pretty basic: I have a table , I need to store in a variable all values of the line that was clicked, I'm trying this with this method below but the result is "undefined". What could be wrong with the code? Or how coul...
asked by 14.02.2016 / 19:10