Search
13884 results 2951-2960
Forum
- 21st Sep 2022Export to PDF the results with search criteraiHi Allan, Thanks for your feedback. For people who may be interested, here is the piece of code I use : $('#example').DataTable().columns().every(function () { if (this.search() != '') { i++; rslt += this.header().innerText + " = " + "*" + this.search().replace('((((', '').replace('))))', '') + "* - "; } }); (i == 1) ? s = '' : s = 's'; The s variable is only to be able to add an s if plural. Then when configuring pdfmake, I create a header, in the header I added a table, where I simply put the rslt text. It is very simple, but hard to find ;-) Now I am looking for a way to export in PDF NO RECORD without any table when the filters show no results !!!!! Still not found ;-)
- 20th Sep 2022I have a problem with duplicated pagination & search bar, can someone help me out?What is happening is that the DataTable is being re-initialised, without previously having been destroyed, but also that the DOM node is not the original (i.e. the HTML has been over written). Here is a really simple demonstration of that: http://live.datatables.net/lavigiji/1/edit . If you hadn't included the mounted() function I wouldn't have known what was going on so quickly, but when your component is destroyed and then remounted, it will appear. You don't say, and haven't included a test case as we ask for, but I'd guess it works the first time it is mounted, then you get what you showed above on the second time, then the third time there are three controls, etc. Probably the easiest fix in this case is to call destroy() in an unmount hook. Allan
- 12th Sep 2022I want to search a specific textbox within a column but not the other textboxes within that column.You can use column().nodes() to get the column noes which can be used as part of a jQuery selector to find the specific input you want. If this doesn't help please provide a test case showing what you have with specifics of how you want to find the specific input. https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case Kevin
- 20th Aug 2022C# - Server side Where Clause is overriding client columns searchYou probably just need to use anonymous functions to do the grouping. See the example here. Allan
- 20th Aug 2022Replacing Number of Rows in Search Pane resultsI think that is the reason, yes. Using https doesn't work.
- 17th Aug 2022table search and filter not showingDuplicate of this thread. Please don't duplicate your posts and look for my answer in your other thread. Kevin
- 14th Jun 2022Search Builder - conditions don't appear for v2.3.3I am, yes. Thanks for the rapid response!
- 6th May 2022How to put a select tag with an embedded search input in data tableThis example is demonstrating that for input elements, you could do something similar for select, Colin
- 1st May 2022Search Builder disable button LogicAnd, LogicOrYep, you can remove options - see this manual page. In this example, it's removing the "=" option for numbers - you can confirm that by looking at the "Age" column, Colin
- 28th Apr 2022ColReorder & Custom Search Functions and Panes@kthorngren @sandy Also, for my current setup: http://live.datatables.net/jahazase/19/edit There are duplicate filters or searchpanes in only safari. For example, there is a custom "New or Maintenance" filter and there is an auto generated "New or Maintenance" filter. This only occurs in Safari. I only want the custom panes or filters to show.