datatables

DataTable : How to hide table header?

好久不见. 提交于 2020-01-14 08:14:03
问题 I have 2 tables using DataTable : top: exact match bottom : related Here is what they look like right now. As you can see that, there is no need to show the table header on the second table. I want to hide it. I have tried using this on my CSS : Since the class = inventory_related .inventory_related table thead { display:none; } I also tried to take off the whole : <thead class="thin-border-bottom "> <th>Catalog # </th> <th>Description</th> <th>Available Vials</th> </thead> This doesn't work

DataTables search on multiple columns

大城市里の小女人 提交于 2020-01-14 05:43:26
问题 I'm trying to search my table on multiple columns at the same time. Example ---------------------------- | Col1 | Col2 | Col3 | ---------------------------- | abcd | efgh | 12 | | bcde | efgh | 34 | | cdef | efgh | 56 | ---------------------------- I want to search "cd" in Col1 and "34" in Col3, so that the result would be ---------------------------- | Col1 | Col2 | Col3 | ---------------------------- | bcde | efgh | 34 | ---------------------------- I've added some input fields in my table

Jquery DataTable passing a parameter to ajax call asp.net. Invalid JSON primitive

不打扰是莪最后的温柔 提交于 2020-01-13 20:31:52
问题 Below is my java script code to Populate my HTML table with server data and I am using Jquery DataTables to server this purpose. function LoadData(result) { $('#example').DataTable({ "ajax": { "dataType": 'json', "contentType": "application/json; charset=utf-8", "type": "POST", "url": "index.aspx/Risky", "data": function (d) { return JSON.stringify( d ) //return JSON.stringify(result); // d.extra_search = result; //"extra_search": result }, "dataSrc": function (json) { return $.parseJSON(json

How to add additional filters to Datatables header?

半世苍凉 提交于 2020-01-13 20:17:12
问题 I need two different things to happen to this Datatable: One: I need to add the From and To datepicker inputs to the header of my Datatable, with bJQueryUI included. I found this discussion, http://datatables.net/forums/discussion/comment/16235 but as you can see in my fiddle my inputs are still not being added to the header. Example code below as well. Two: When clicking inside these inputs, the datepicker widget shows and allows you to pick a date. I need to filter the table between

How to conditionally display TableTools buttons

混江龙づ霸主 提交于 2020-01-11 13:04:53
问题 I'm using jQuery DataTables and TableTools extension to display buttons in table header. But is there an option to show button when some condition is met? My table initialization code is shown below: projectsTable = $('#projects_table').DataTable({ "dom": '<"cleaner">lf<"cleaner">T<"cleaner"><"cleaner">rtip', "stateSave": true, "data":tableData, "bSortCellsTop": true, "responsive": true, "autoWidth": false, "tableTools":{ "aButtons": [ { "sExtends": "text", "sButtonText": "New project",

How to conditionally display TableTools buttons

半城伤御伤魂 提交于 2020-01-11 13:04:31
问题 I'm using jQuery DataTables and TableTools extension to display buttons in table header. But is there an option to show button when some condition is met? My table initialization code is shown below: projectsTable = $('#projects_table').DataTable({ "dom": '<"cleaner">lf<"cleaner">T<"cleaner"><"cleaner">rtip', "stateSave": true, "data":tableData, "bSortCellsTop": true, "responsive": true, "autoWidth": false, "tableTools":{ "aButtons": [ { "sExtends": "text", "sButtonText": "New project",

R datatable buttons export with formated cells

大兔子大兔子 提交于 2020-01-11 10:32:25
问题 The extensions Buttons works great for shiny application, from library(DT) . However it export the data without formatting. Is there a way to export data with format (e.g. percentage, or currency)? Similar question left unsolved. Reproducible code library(DT) data.frame(a = c(1,2), b = c(2,3)) %>% datatable(extensions = 'Buttons', options = list( dom = 'Bfrtip', buttons = c('copy', 'csv', 'excel', 'pdf', 'print')) )%>% formatPercentage('a') %>% formatCurrency('b') 回答1: Instead of using the

Image popup on hover in DT in R

拈花ヽ惹草 提交于 2020-01-11 08:50:11
问题 I have a DT within a Rmarkdown and I would like an image to pop up when hovering over table data. What i have so for seems to work but it distorts the datatable . It increases the table rows height to fit the image. I have tried to reduce the row sizes via css but with no luck. This is the Rmarkdown I have so far: --- title: "Untitled" author: "dimitris_ps" date: "3 September 2016" output: html_document --- <style type="text/css"> .imgTooltip { visibility: hidden; } .ItemsTooltip:hover

One Datatables.net table with multiple ajax calls from Sharepoint 2010 REST API

隐身守侯 提交于 2020-01-11 07:27:08
问题 I am new here, so exuse me in advance for the lengthy question. I'm new to SP2010, and so far followed the following tutorial to make JQuery Ajax call to my SP List: Who Needs a Data View Web Part? SharePoint REST and DataTables.net My (and everybody's) problem is, that SP2010 listdata.svc returns only the first 1000 entries in the JSON. However the tutorial suggest a pre-filtering method to call for only the data the user would need, in my case, I would like to load all my 200+ entries to

YADCF + Datatables Server Side Populate Select with Php

一笑奈何 提交于 2020-01-11 06:19:01
问题 I literally have searched Every Single Page that mentions the argument, but cant seem to figure this one out I am using Datatables with Yadcf , ajax source, server_side.php and ssp.class.php Now i want to populate the select filters with All the data, not just the current page, I read and saw the yadcf showcase - -> yadcf-showcase.appspot.com/server_side_source.html that the only mention is a JQuery (java) part to populate the yadcf_data_n But cant find one single example to do the same using