Search
43891 results 6981-6990
Forum
- 1st Jun 2014How do I exclude the span tag from being sorted in a table cell?In datatables 1.9, I would do something like this: $('#players-table').dataTable({ aoColumnDefs: [{ mData: function (source, type, val) { if (type === 'set') { source[iColIndex] = val; return; } else if (type === 'sort') { // source[iColIndex] = is the cell value (<td> DATA THAT NEEDS TO BE SORTED <span>Data Label</span> </td>) // return the right data to sort } return source[iColIndex]; }, aTargets: [iColIndex] }] }); iColIndex is the column index
- 29th May 2014Scroll X creates additional blank table heads with sort arrows in themThat is bizarre. I've just poked and prodded it for 15 minutes and simply can't get the height to be 0... Everything is saying that it should be height 0, but there is something stopping it from being so, can I can't see what. I'll need to come back to this one when I've got a bit more time to spend on it (can't promise when that will be though). Allan
- 22nd May 2014Only show sort icons when table header is hovered.Thanks Allan. That served the purpose beautifully.
- 21st May 2014Table tools return "undefined" data while exporting.I'm going to need more information to be able to offer any help here I think - ideally a test case. Are you using the download get + post plug-in from here: https://datatables.net/extensions/tabletools/plug-ins ? If you add a debug line in to console out the oParams variable, what does it contain? Allan
- 8th May 2014How can i reload the ajax data in table.Please link to a test case, as required in the forum rules. Very likely you are using $().dataTable() rather than $().DataTable(). See the documentation for how to access the API for more information. Allan
- 2nd May 2014Getting all filtered rows in the table failing in 1.10Thanks for the clarification. I suspect the error is in the tr part and how DataTables is handling that. Its doing a selector, but the nodes don't exist (since deferred rendering is enabled). I'll take a look into it, but for now, I'd recommend just using the nice new shiny API ;-) Allan
- 29th Apr 2014Using Datatables jQuery in IE 8 i see issue,Chrome is working fine , in IE8 table shows nullHi Allan, Thanks for dropping in test case , i was able to run in chorme. but when i copy the same url in ie 8 i see script error . check it out in ie 8 document mode : IE 8
- 29th Apr 2014Table headers misaligned when using Tabs and ScrollAllan, Thanks that seems to have been my issue. I uploaded the 1.9 version. However I have another script with the same JQuery script and the first tab is still not aligned properly. The 2nd tab on this other script is correct. The only difference I can tell between the two tabs is that the first tab is generated with some php code that pulls data from my database and the 2nd tab is static data, copied and pasted from my first test case I gave you. The test case that I gave you earlier works like it should. Both tabs are static data and both tabs line up properly. Here is a link to my 2nd test case http://cosys.carefitllc.com/my_orders2.php Here is the link to my first test case again http://cosys.carefitllc.com/test_case.php Any ideas as to why my 1st tab in my_orders2.php do not line up properly?
- 15th Apr 2014i am not getting automatic generate html markup and didn't show table data, it displays columns onlyhttp://datatables.net/forums/discussion/12899/post-test-cases-when-asking-for-help-please-read
- 7th Apr 2014Checkbox problem with data tableMaybe similar to this?: http://datatables.net/forums/discussion/14151/checkbox-select-checkboxes-all-only-works-once/p1 Try changing attr to prop