Search
23433 results 3011-3020
Forum
- 28th Aug 2015reindexing search columns after updating a cellHi, I have this example table <table id="example"> <thead> <tr> <th></th> <th>Name</th> </tr> </thead> <tbody> <tr> <td data-search="starred"><button class='js-star' /></td> <td>Some dude</td> </tr> <tr> <td data-search=""><button class='js-star' /></td> <td>Some dudette</td> </tr> </tbody> </table> $(document).ready( function () { var table = $('#example').dataTable(); // ... } ); now if i search for "starred" I will get the row of "Some dude" but then if i click on the button ".js-star" it will make an ajax call and then set data-search="starred" for "Some dudette", However, If i search again for "starred" then "Some dudette" won't show up. I have read ajax api solution and even tried to update it with fnUpdate also the solutions in this thread but still getting the same result. What's the solution here? Thanks.
- 24th Aug 2015Filters columns not responsiveHi, I'm using this https://datatables.net/extensions/responsive/examples/styling/bootstrap.html but I want to disable the extension "+" and the filters column resize. I want my table full responsive with filters column resize this is possible ?
- 13th Aug 2015serverside/ajax search multiple columnsGood afternoon, I am trying to get datatables to work with the server side/ajax method but also be able to search two colums. I copied the files etc in this example: https://www.datatables.net/examples/server_side/simple.html However, when I search for two words it only searches one. For Example Say we have 3 colums, ID, title, and thickness There will be a lot of products that have the thickness of 40mm and also a lot of products that have "luna night" in the title. What I want to be able to do is search "luna night 40mm" and It finds any products that have both "luna night" in the title AND "40mm" in the thickness. Is this possible at all and if so how can we do this?
- 7th Aug 2015With basic initialisation I can't sort my columnsAll is said in the title. I just initialized my dataTable and when I refresh my webpage I can't sort my data ? I am using gem installation, with javascript to initialize the dataTable
- 9th Jul 2015Multiple columns 'OR' searchHello. I've noticed, that currently columns([1,2,3,4]).search() performs 'AND' search - gets rows only if text is present in column 1, 2, 3 and 4 concurrently. I've tried to look at the code and change it myself, but didn't really manage to do it. Is it possible to add flag which allows to search for text in column 1 or 2 or 3 or 4? Or maybe somebody did it already? Thanks in advance for reply. Best regards,
- 10th Apr 2015Fixed Columns showing sort icons on header and 1st rowI am using FixedColumns css and js 3.0.4 with datatables 1.10.6 with bootstrap 3 integration After using just basic initialization, i notice that sort icons also appear on my 1st row, I am assuming this is a bug and wanted to report it, if you need a code exaple I can provide it
- 9th Apr 2015:Undefined index: columns in ssp.class.php and Undefined index draw in ssp.class.phpI am receiving these two errors after trying to implement a test server-side page on my local webserver. I have an unmodified ssp.class.php straight off of the github (except for commented out $file test block). I have also modified my server_side.php simple() to POST instead of GET as well as modified my datatables ajax call to include "type": "POST" I had previously modified the ssp.class.php to set the query to UTF8 as per google but this did not fix anything. the first line of my JSON return is like so: {"draw":0,"recordsTotal":1000,"recordsFiltered":1000,"data":[ So I know that draw is atleast being set somewhere. I'm kind of at a loss since I figured this simple version of the server side part of datatables would work out the box after the minor changes you are instructed to make. Any ideas would be appreciated, just needed to be pointed in the right direction. I really don't want to switch to something else as I have used datatables for smaller tables in the past and I love it. My table for this current project is 6k rows+ so it requires server side otherwise it slows to a crawl, so I have never worked with this before and am in my infancy knowledge wise. Thanks in advance
- 21st Mar 2015Sorting the column based on Min value (2 Columns)When we want to sort based on Age ,as said in the url "https://datatables.net/examples/plug-ins/range_filtering.html" we can use but at the same time i want to get all the Salary which is above $10,000. Which means i want to sort the 2 or more column using the min value.
- 15th Mar 2015ColReorder & FixedColumns integration , when reorder with fixed columns, column name does not updateAs seen in this example http://datatables.net/release-datatables/extensions/ColReorder/examples/fixedcolumns.html, when reorder First name and Salary for example, Column names remains "First name" for salary column. How to overwhelm this bug?
- 3rd Mar 2015Fixed Columns + ColVis broken (even example on this site)So if you go to http://datatables.net/release-datatables/extensions/FixedColumns/examples/colvis.html and hide the first column you'll notice Last Name is populated with data from the Position column. I'm having the exact same issue in my own project. Any ideas on how to fix it?