Search
11332 results 1811-1820
Forum
- 17th Sep 2021How to add a filter select box in top form ?The select box appears in header form, between "Show X rows" and "Search" => I didn't find how to do that at all See if this example of adding custom toolbar elements helps. When requesting results to the server, the value always appears in query string => Using a function as ajax.data seems to do the job => That is the way recommended way, see this example. The select box is always having a value, it has a default value and it uses it for the first request Thats up to you, Datatables won't control the custom select input. When selecting another value, the table immediately refresh and show new results => Using ajax.reload() should be ok => That'll work. Another alternative is to use draw() if you are using server side processing (serverSide: true). Kevin
- 3rd Sep 2021Filter second selection based on first selectionThis is great, thank you!
- 2nd Sep 2021How do I add the following filter when searching through the datatable?You are going to need to elaborate on your question for me. Are you looking to replicate the code you have there with our Editor PHP libraries, or something else? If you are, then: $editor->where(function ($q) use ($request) { if ($request->first_name) { $q-where('first_name', '%'.$request->first_name.'%', 'LIKE'); } ... }) Would do it. See the documentation here. Allan
- 17th Aug 2021Filter to .select rowGreat kthorngren! This is the solution I was looking for Thank you. Thank you also Colin for your answer. I wish you all a good continuation. Riccardo. Do you know how to close this discussion ?
- 16th Aug 2021Selected row count doesn't clear properly when filter appliedof selected rows after filtering. Kevin
- 16th Aug 2021Cannot use Date Filter in SearchbuilderHi @poeziafree , DD-2030 is simply the internal bug number that we use to track the issue. You don't need to worry about that - it's just so that I can find the original post in the future. The error with SearchBuilder was cause due to the order in which you had your script tags. You can see the order that works by comparing the test cases above. The updated example I provided shows SearchBuilder is working fine, it is the SearchHighlight plugin that is causing the error. You could remove that and it would remove the error. Either way, SearchBuilder will still work. Thanks, Sandy
- 13th Aug 2021Get Selected filter from specifics panesSee my comment on your other thread - please don't duplicate questions, Colin
- 9th Jul 2021Problem Duplicate filter on headerWe will need to see what you are doing to help debug. Please post a link to your page or a test case replicating the issue so we can offer suggestions. https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case Kevin
- 7th Jul 2021State save on custom filterstateSave gives you a placeholder to store your custom information alongside DataTables's state - you can store whatever you like in there. If you create a custom dropdown, you would just need to restore that however suits, from the saved data. This thread here for example shows how to restore input element text. It really is just specific to the information you want restored. Colin
- 22nd Jun 2021Question about Multiple Filter ExampleHi Kevin, Well-explained! Thanks a lot.