Search
11456 results 8871-8880
Forum
- 8th Nov 2023Column Filtering and Google SheetsThat example will still work with data fetched via Ajax or supplied using Javascript. I'm not sure of the exact process but you will need to get JSON data from the Google Sheet in a format supported by Datatables. The Data docs describe what is supported. Basically you will need an array of rows with each row being an array or better an object. See this SO thread that seems to describe how to fetch JSON data from the Google Sheet. You might be able to use ajax to fetch the data and use ajax.dataSrc with an empty string to point to the JSON data. See the Ajax docs for more details. Or use $.getJSON() and in the success function init Datatables and supply the data using data. See the Ajax sourced and Javascript sourced examples. Let us know of any questions. Kevin
- 27th Aug 2022How to put a select field beside the filtering input?Maybe this example will help. If not please build a simple test case showing what you are trying to do. https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case Kevin
- 16th Jun 2022Column Filtering example is brokenHi, This is the example to use. I've actually deleted the example you linked to from the git repo already as it was wrong and duplicated. I'll be doing a release tomorrow which will include the updates :) Allan
- 8th Jun 2022How to pass value for where-clause filtering in server-side processing?That did the trick. Thank you!
- 24th Feb 2022Vue 3 + DataTables.net: Data table does not update on filteringActually even better, put the v-once on a div around the table, so DataTables can insert its table control elements, without Vue potentially removing them. Allan
- 24th Jan 2022Filtering out HTML in searchesOkay I'm feeling a bit foolish. I had been trying to get this to work, but didn't realize that it was working in the wrong file. As soon as I moved the following code to the file i was actually testing on it worked "columns": [ { "width": "35%", "searchable": true, "type": "html" }, { "width": "25%", "searchable": true, "type": "html" }, { "width": "25%", "searchable": true, "type": "html" }, { "width": "5%", "searchable": true, "type": "html" }, { "width": "5%", "searchable": true, "type": "html" }, { "width": "5%", "orderable" : false, "searchable": false, "type": "html" } ]
- 27th Dec 2021How to make search with Ajax instead of default filtering dataCan you update your test case, please, to demonstrate that. It would help us to understand the problem if we can see what you're doing, Colin
- 17th Dec 2021Generating a table with javascript/json. No pagination and data resets when ordering or filtering.Perfect, glad all sorted, and thanks for the explanation - I'm sure that'll be helpful for others, Colin
- 25th Oct 2021Filtering blank values in columns that have an inputNevermind, it is working. I had changed some code testing something and i forget to change it back.. lol.. this is working.. thanks for the help!
- 23rd Jul 2021Displaying 'No data available in table' and when clicking filters, table clears data.That fixed it! Thank you.