datatables-1.10

Datatable datefilter loads correctly but throws Uncaught TypeError on date selection

三世轮回 提交于 2019-12-12 04:09:11
问题 This question is just a replication of scenario given Jquery Datatables Date Range Filter. The datatable loads correctly but throws following error when selecting a date. The following error is thrown: Uncaught TypeError: Cannot set property 'currentDay' of undefined at Datepicker._selectDay (jquery-ui.1.12.1.js:8188) at HTMLTableCellElement.selectDay (jquery-ui.1.12.1.js:8789) at HTMLTableCellElement.dispatch (jquery.v1.12.0.min.js:3) at HTMLTableCellElement.r.handle (jquery.v1.12.0.min.js:3

jQuery DataTables sorting is not working

吃可爱长大的小学妹 提交于 2019-12-11 23:47:27
问题 Using jQuery 2.1.3 and DataTables 1.10.5, my table won't sort when I click on the up- and down-arrows above the columns. From what I can tell from the documentation, this is the simplest example, and should work. I can't seem to figure out why it isn't. My HTML/JavaScript <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

Row containing a button dropdown causes vertical scrolling when scrollX is enabled

六眼飞鱼酱① 提交于 2019-12-11 17:39:30
问题 I have a datatable that has scrollX enabled due to the number of columns displayed. The table rows contain a bootstrap button dropdown with several items. When selecting the dropdown the scroll is enabled and it is difficult to choose the correct action. How can the viewport get resized when the dropdown is selected so the vertical scroll does not appear? The jsfiddle is https://jsfiddle.net/darwinaero/q9mLg375/15/ $(function() { $('#tblTest').DataTable({ dom: 'Blfrtip', scrollX: true, paging

Deleted Rows appear back upon adding new row DataTables

南笙酒味 提交于 2019-12-11 12:21:44
问题 Hi i am a newbie to DataTables .... i have a data table in which i would like to add rows (one at a time) and have the capability of a multirow delete. I have managed to get the normal functionality working but the problem is that when i delete a row/rows and then try to add a new row the deleted rows appear back in the same positions as selected rows .... below is the code i am using to initialize the DataTable and the functionality to add and delete rows in my DataTable.... Any help would

Display DataTables columns at natural width

怎甘沉沦 提交于 2019-12-11 11:29:37
问题 I'm working with the DataTables library, and I'm using the autoWidth option to have DataTables set column widths automatically, as well as the Scroller plugin to fix headers and page data from the server. This combination looks beautiful when my table has a large number of columns, but when it has just a few columns, the autoWidth setting makes them cartoonishly large. Here's an example: http://live.datatables.net/rizuvaza/2/edit What I'd like is for the table to be only as wide as necessary

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

Jquery datatable Sort not working for Date Column?

陌路散爱 提交于 2019-12-11 09:15:34
问题 I Have a jquery datatable where date column format is Feb 16, 2018 but when it is sorted it is not getting sorted correctly. I have used all date related column types mentioned Here But Nothing seems to work. How can I resolve it? Here is the code <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <div class="panel-body btnsize"> <table class="table table-striped table-bordered dttable" id="JsDataTable" style="border-radius: 17px 17px 0 0; border-style:

Proper bundling of DataTables in ASP.net MVC

一笑奈何 提交于 2019-12-11 08:49:59
问题 I've run nuget for datatables and I'm trying to bundle them so that it works in all my views. However, it doesn't seem to be working properly. the datatable functionality is occuring, but the Datatables formatting is not occuring. I assume I'm not bundling the CSS properly, but I'm not sure. Here is my bundle in BundleConfig: bundles.Add(new ScriptBundle("~/bundles/datatables").Include( "~/Scripts/DataTables/jquery.dataTables.js", "~/Scripts/DataTables/jquery.dataTables.min.js", "~/Scripts

HTML table not responding to Knockout binding

不羁岁月 提交于 2019-12-11 08:42:04
问题 I have a set of parent and child objects which I am displaying in a table. The table DOM is wired to the model via Knockout. This works pretty well and the table changes whenever the model changes. Now, applying DataTable to the table brings in some issues to the table. The view is no longer responding to Knockout bindings for some reason. You can see the problem illustrated in this jsFiddle Click on 'Clear families' nothing will happen. I was expecting the table to completely clear out.

Single filter not working when where clause have specified value [duplicate]

自闭症网瘾萝莉.ら 提交于 2019-12-11 08:25:03
问题 This question already has answers here : How to join two tables with ssp.class.php (3 answers) Closed 2 years ago . I set my datatable only show data which start with OQC . require('ssp.class.join.php' ); $joinQuery = "FROM `monitor` AS `a` JOIN `sym_category` AS `b` JOIN `model_cat` AS `c`"; $joinQuery.= "ON (`b`.`id_sym` = `a`.`id_sym`) AND (`c`.`id_mod` = `a`.`id_mod`)"; $joinQuery.= " WHERE `a`.`id_car` LIKE 'OQC%'"; echo json_encode( SSP::simple( $_GET, $sql_details, $table, $primaryKey,