Search
11152 results 1271-1280
Forum
- 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>
- 25th Aug 2016jquery datatable pagination search and sort is not working and search showing hand symbolsearch box showing hand symbol when mouse enter the box
- 8th Aug 2016Sort Not working when adding rows to table.when it comes to sorting. I'm adding my rows
- 18th Mar 2016Remove sort on complex headerdo I remove the sorting arrows on the "time"
- 14th Mar 2016Jquery DataTable Group Sort orderHi I am using Jquery DataTable (https://datatables.net/) plugin and have grouped the rows based on column0. The groups that are generated are in Alphabetical order by default, but I would like to make these groups order according to my need. Is there a way to do this? I saw this documentation (https://jquery-datatables-row-grouping.googlecode.com/svn/trunk/customGroupOrdering.html) but it is asking to write HTML for each row. Not sure if thats the right way. Can someone know how to go about this? Thanks Anmol
- 7th Feb 2016Why no sort header?I just include js and css in my html, but I can't view the sortable header, and I also found a error as "undefined is not an object (evaluating 'c.mData'", the source like this, how can I do? h(r[0]).children("th, td").each(function(a, b) { var c = n.aoColumns[a]; if (c.mData === a) {
- 5th Feb 2016Really easy question but how do I implement the UK date sort plug-in - sorry really new to jqueryI have the code but am unsure - do I just drop it into the code?
- 26th Jan 2016Sort by date problem not workHi, I use this library for the first time and i have a table with 4 column that have a date in this format for example 30.06.2014 but the default order not work on the data because the result is that i have 2013-2014-2015-2013 ecc.., i create a table with $('table').dataTable( ) so I try to use the console web and make different operations. I see https://datatables.net/plug-ins/sorting/date-de that seems to use my format so I destroy the table, insert the code of the plugins and after use the code for create the table but the order doesn't work
- 15th Jul 2015Sort column with numbered input fields built using BootstrapI can't quite figure out how to write the code to allow an input column of display order numbers in input fields. You can see what I am talking about here, http://www.profusioncms.com/anchors.htm. Here is the code I have written: /* Create an array with the values of all the input boxes in a column, parsed as numbers */ $.fn.dataTable.ext.order['dom-text-numeric'] = function ( settings, col ) { return this.api().column( col, {order:'index'} ).nodes().map( function ( td, i ) { return $('input', td).val() * 1; } ); } $(document).ready( function () { var table = $('#recordsTable').dataTable( { columnDefs: [ { targets: [0,3], orderable: false, } ], order: [[ 1, 'desc' ]], orderDataType: 'dom-text-numeric', }); var tt = new $.fn.dataTable.TableTools( table , { sSwfPath: '/profusion/bootstrap/datatables/extensions/TableTools/swf/copy_csv_xls_pdf.swf', aButtons: [ 'xls', 'pdf' ], } ); $( tt.fnContainer() ).insertAfter('div.buttons'); } ); Thank you for your help in advance. David G. Moore, Jr. UpstateWeb LLC
- 30th Mar 2015How to sort date field having no timeHi All I have datatable having to column 1) Date 2) Time How do I only Date column with respect to Time. like Date | Time { 10-Dec-2014 | 10:45 } { 10-Dec-2014 | 11:45 } { 15-Jan-2015 | 19:00 } Thanks