jquery-datatables

jQuery Datatables not working properly

不羁岁月 提交于 2019-12-11 11:46:05
问题 I have a table that gets filled via Knockout.js and uses jQuery Datatables 1.9.x over the table for sorting and paging. <table id="myTasks-table" class="table table-bordered table-striped request-table"> <thead> <tr> <th>Request Id</th> <th>Type</th> <th>Follow up</th> </tr> </thead> <tbody data-bind="foreach: MyTasksVM.tasks"> <tr> <td> <!-- ko if: RequestSource == "I" --> <a data-bind="attr: { href: '/HelpDesk/ticket/detail/' + ServiceRequestID }"><span data-bind=" text: ServiceRequestID"><

How can I filter between a range of numbers and hide rows that aren't in the range using DataTables?

↘锁芯ラ 提交于 2019-12-11 11:27:03
问题 I'm trying to take input through two input fields. A minimum field and a maximum field. With the minimum and maximum values I want to look at a certain column and check to see if the value of the cell in that column is between the range. If the cell is not in the range of the minimum and maximum values, I would like to hide the row. Here's is what I've been working with: (Currently not working as intended.) $('table').DataTable(); var counterLow = $('#counter-low'), counterHigh = $('#counter

jQuery DataTables issue: columns and rows not in one line

点点圈 提交于 2019-12-11 10:44:34
问题 I'm having a x- and y-axis scroll and fixed columns on the left side. My problem is the position of the thead to the tbody and the position of the rows. The columns and rows are not displayed exactly in one line, they are a little bit displaced. I tried this: Table header and body are not getting aligned properly when table header freezed using CSS jQuery Datatables Header Misaligned With Vertical Scrolling Fixed column header width does not match body column widths but it didn't work for me.

jquery-datatables-rails gem doesn't display correctly until page is refreshed

巧了我就是萌 提交于 2019-12-11 10:27:49
问题 Environment: Ruby 2.0.0, Rails 4.1, Windows 8.1, Devise, jquery-datatables-rails 1.12.2. I am also running Acts-as-tenant, which is a wonderful multi-tenant gem. I have the datatables gem up and running except for one small problem. When the page is accessed from the index action, it isn't formatted and working. Only a browser refresh fires it up and then it works beautifully. Since it works after the refresh, it seems to me that the gem setup is good. I have attempted multiple fixes. I

DataTables 1.10 - Not Showing Results

痞子三分冷 提交于 2019-12-11 09:34:59
问题 This is my setup. Javascript/jQuery: $('#list').dataTable({ paging: false, serverSide: true, ajax: { url: "/search/", data: function (d) { return $.extend({}, d, { lid: Label.selectedId }); } } }); HTML <table id="list" class="table table-striped" width="100%"> <thead> <tr> <th>Title</th> <th>First Name</th> <th>Last Name</th> <th>URL</th> </tr> </thead> <tbody> </tbody> </table> JSON Response {"data": [["Test", "", "", ""]], "recordsTotal": 1, "draw": 1, "recordsFiltered": 1} It is getting

data table header height increased after showing /hiding the columns in IE8 browser

天涯浪子 提交于 2019-12-11 09:24:46
问题 We are dynamically hiding/showing the data table column (using datatable plugin as well Fixed Column.js plugin) After hiding the columns,it will increase the table header height in IE8 browser only. This is code we are using to hide. "index" is column index. //$datatable is datatable object if(some condition) { $datatable.fnSetColumnVis(index, false); } else { $datatable.fnSetColumnVis(index, true); } This issue seems to be FixedColumns.js(2.0.3 version). we are using FixedColumns in our data

jQuery dataTables : Export with newline / break in cell, using jQuery

不打扰是莪最后的温柔 提交于 2019-12-11 08:32:30
问题 I´m trying to generate an exportable datatable with the plugin "jquery.dataTable". But for design reasons I need linebreaks inside the cells. For the HTML view I simply use <br> , but if I try to export this f.e into a PDF, it will cause to break the output from the first occurring br, so I googled around and tried to pre-process the data and replace breaks with newline characters but this will cause the PDF export to break at the first br for even a lot of rows. I have no idea. Here's the

JQuery Datatables without Array

99封情书 提交于 2019-12-11 07:17:56
问题 I'm having trouble populating a table, accessing a text file that has JSON like this: { "1000": { "country": "US", "eventid": 1000, "venue": "San Francisco, USA" }, "2000": { "country": "DE", "eventid": 2000, "venue": "Munich, Germany" }, "3000": { "country": "GB", "eventid": 3000, "venue": "UK (Market House)" } } I have followed the examples on datatables.net and tried loading it on to my HTML <HTML> <head> <title>Hello World</title> <link rel="stylesheet" type="text/css" href="bootstrap.min

Google.load() of jQuery - doesn't work with DataTables.net

末鹿安然 提交于 2019-12-11 05:47:55
问题 I have web pages (here an example) with the old Google charts API (the old static images) and I'd like to move it to the new Google visualisation charts API. I also use jQuery, jQuery UI, Google JS maps and DataTables.net (all hosted at the Google and Microsoft CDNs): <style type="text/css" title="currentStyle"> @import "/demo_table_jui.css"; @import "https://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/redmond/jquery-ui.css"; </style> <script type="text/javascript" src="https://maps

dataTables - processing div hides before table is updated using fnReloadAjax

瘦欲@ 提交于 2019-12-11 05:09:11
问题 I am using DataTables with server side processing enabled. While refreshing the table data using fnReloadAjax() method, the processing div shows up, then after request completes it hides(table still shows old data) and then after about 2 seconds new data appears in the table. So there is a period of few second where it appears that the plugin has finished loading the new data but it still shows the old data.Is there a way to hold the processing div till the new data is drawn in the table? 来源: