Search
13880 results 3161-3170
Forum
- 21st Oct 2017Cannot customize Search Box and Filter Box with css class when translatingHi, When I use translation the customization on both fiedls stop working. Can someone help me? This is my code: $(document).ready(function () { $.ajax({ url: "Default.aspx/generateData", type: "POST", dataType: "json", contentType: "application/json; charset=utf-8", success: function (retorno) { $('#myTable').DataTable({ data: JSON.parse(retorno.d), dom: "<'row'<'col-sm-6'l><'col-sm-6'f>>" + "<'row'<'col-sm-12'tr>>" + "<'row'<'col-sm-5'i><'col-sm-7'p>>", language: { url: 'https://cdn.datatables.net/plug-ins/1.10.16/i18n/Portuguese-Brasil.json' }, createdRow: function (row, data, dataIndex) { if ((data['dtencerramentoalerta'] == null) || (data['dtencerramentoalerta'] == '')) { $(row).addClass("danger"); } else { $(row).addClass("warning"); } }, order: [[ 2, "desc" ]], columnDefs: [ { className: "text-center", "targets": [0, 1, 2, 3, 4] }, { orderable: false, "targets": [4] } ], columns: [ { 'data': 'column1' }, { 'data': 'column2' }, { 'data': 'column3' }, { 'data': 'column4' }, { 'data': null, 'fnCreatedCell': function (nTd, sData, oData, iRow, iCol) { $(nTd).html("<a href=test.aspx?data=" + oData.column5+ "><i class=\"fa fa-area-chart fa-fw\"></i></a>"); }, 'bSearchable': false } ] }); }, complete: function () { $('div.dataTables_filter input').addClass("form-control"); $('div.dataTables_filter input').addClass("input-sm"); $('div.dataTables_length select').addClass("form-control"); $('div.dataTables_length select').addClass("input-sm"); } }); }); If I remove the following lines the css classess are applied successfully: language: { url: 'https://cdn.datatables.net/plug-ins/1.10.16/i18n/Portuguese-Brasil.json' }, Cheers
- 19th Jun 2017Search Box select inputI would like to highlight the wording already in the searchbox when i click in the box. This would remove the neccessity for the user to click in the box and remove the wording, they can simply start typing.
- 13th Jun 2017How to search a value in the same page with clickable columns?https://datatables.net/examples/api/tabs_and_scrolling.html in this example Table2 is a default searched value on seacrh box, but I wanna make a clickable value and when I click it It should show the value like the Table2 in the datatable example?.
- 28th Apr 2017I need the search engine to work and filter the dataI get the data from multiple tables, and I need the searcher to filter the data if it appears in any column Please download the code and tell me what I do wrong https://drive.google.com/file/d/0B6Io7u_4OHBTUm9JcHFBemtWX1k/view
- 21st Apr 2017Removing specific search result/ removing 1/2 or 2/2 search resultsdo is remove these searches individually instead of simultaneously!
- 31st Mar 2017my datatable is not printing with pagination and search boxwhen i'm using this plugin to print the datatable from server the pagination and serch box hidden automatically while i'm print table using simple it's work fine, please help me out from this problem My code is < table id="table"class="table table-bordered table-dataTable"> S. No. Employee Code Name Gender Department Designation email and jquery is $(document).ready(function(){ $('#table').DataTable(); });
- 14th Feb 2017Sort, pagination and search functionality not working when I pull data from DB | Python | Django1.9All of the features work when the Data is Raw HTML but the moment I use a For loop to extract data from the DB using Models the table is population perfectly but the above said features do not appear. Below is my Code: <head> <link rel = "stylesheet" href="http://cdn.datatables.net/1.10.13/css/jquery.dataTables.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> <script src="http://cdn.datatables.net/1.10.13/js/jquery.dataTables.min.js"></script> <script> $(document).ready(function(){ $('#example').DataTable(); }); </script> <meta charset="UTF-8"> <title>Test</title> </head> <table id="example" class="display" cellspacing="0" width="100%"> <thead> <tr> <th>Name</th> <th>Position</th> <th>Office</th> <th>Age</th> <th>Start date</th> </tr> </thead> <tbody> {% for obj in object_list %} <tr> <td> {{obj.title}} </td> <td> {{obj.title}} </td> <td> {{obj.title}} </td> </tr> {% endfor %} </tbody> </table> </body> </html>
- 2nd Feb 2017Search for all rows having an empty cellHi there, i'm struggling to find a solution with latest version of DT. I've a large table with rows that might contain empty values. When these cellsare empty, they already have a css class applied on (<td class="empty">) , as well as the row (<tr class="hasEmpty">). These empty cells can be in any column (except the first which always contains a value - not sure if relevant) Then i'd like to have a button outside the table to show all rows that contain at least one cell which is empty. Is there a way do to this? Based on the empty value as a regExp ? ( '^$' ) Or maybe the class which is already applied ? myTable.columns().search('^$').draw() will return no result. (nor myTable.columns().search('something').draw() , although there is "something" in some cells, not sure why...) Thanks for your help !
- 27th Jan 2017datatables search inside csv regexcan anyone help me on this stackoverflow question :- https://stackoverflow.com/questions/41425765/datatables-search-inside-csv-regex
- 11th Jan 2017how jquery jtable search ,filter and curd oprations all in one table in java mvcplz give the entair code for full length code