Questions tagged as 'jquery-datatables'

2
answers

How to apply the DRY (Do not Repeat Yourself) strategy in this code?

I have several tables, one on each page of my application and all will have the same function of filtering a column, but the columns have different names and different orders. How to write this code without being repetitive? $(document).rea...
asked by 19.01.2015 / 16:01
2
answers

JQuery DataTables - Number of Paging Numbers

I'm implementing DataTables pagination and I could not figure out how to change the number of paging number buttons. As you can see, we have 1 a 5 , or we could have 7 a 11 numbers of the Page, that is, always 5 numbers . I would...
asked by 10.06.2014 / 19:20
1
answer

Datatables getting shrunk at startup

I have 2 datatables on a page, only one of them is starting to shrink, as you can see in the image below. What do I need to do to start correctly? <!DOCTYPEhtml><htmllang="pt-br"> <head> <meta charset="utf-8">...
asked by 04.01.2018 / 18:51
1
answer

Rename values using if else

I am using DataTable to generate a table where it has a Status field that receives values 1 or 2 and Status with value 1 is Active and 2 is Inactive. how do I show Active / Inactive instead of # Try to do if else here to print the result but...
asked by 21.07.2017 / 16:11
2
answers

How to disable JqueryDatatables auto search?

I'm using Jquery Datatables, and I need to remove the auto search it has, by leaving a "Search" button next to Has anyone done this yet?     
asked by 08.09.2014 / 23:12
1
answer

Using JQuery DataTables with ASP.NET MVC 5

I have questions about how to use DataTables with the MVC 5 and submit button by returning a Json as per the site: DataTables $(document).ready(function() { $('#example').dataTable( { "processing": true, "serverSide": true, "ajax...
asked by 14.11.2014 / 02:49
1
answer

Jquery - Popular table using array

I need to populate a table with objects received via the database, but I'm not able to pass the contents: <table id="grid-itens-nota" class="table table-bordered table-hover"> <thead> <tr>...
asked by 10.09.2016 / 20:12
2
answers

Check all the checkboxes of a DataTable table?

I have a ckeckbox that intends to tag all available options in a table Jquery-DaTaTabeles , but after pagination the next Checkbox were not marked, ie on the second page they are no longer marked. VEJAM : $(document).ready(func...
asked by 25.07.2014 / 16:00
2
answers

Column Visibility DataTables

I'm using DataTables to display and export my tables, one of the types of datatables I use and this one here:    link I would like to know if it is possible to set at startup which columns should be omitted and then optionally di...
asked by 04.07.2018 / 14:32
1
answer

How to make CRUD buttons in datatables?

I am doing server-side activation and want to know how to make some buttons from a basic CRUD, in the last row, type like this: Mycode<scripttype="text/javascript" language="javascript" class="init"> $(document).ready(function() {...
asked by 29.06.2017 / 20:56