hello
Edit: newest version 1.10.16 is here: https://www.drupal.org/node/2919790
this version is obsolete

i changed many thing to support newest version datatables 1.10.x
donwload version 1.10 https://datatables.net/download/download into site site/all/libraries
now it support
- theme :

  • Bootstrap
  • Foundation
  • jQuery UI
  • Semantic UI

- Extentions :

  • AutoFill
  • ColReorder
  • FixedColumns
  • FixedHeader
  • KeyTable
  • Responsive
  • RowReorder
  • Scroller
  • Select
  • Buttons

- Multi filter
- support ajax and Server-side. use module data source to export jsonp

I'm working for Column visibility, I have no idea why extension Buttons doesn't work on my machine
it must like this https://datatables.net/extensions/buttons/examples/styling/bootstrap.html

test and debug please . Drop me some line if you have idea for Extension Buttons (it replaces extras tableTools)
some bug for combo datatables
- FixedColumns (Left or right) + FixedHeader (header) doesn't work but FixedColumns + FixedHeader(footer) works fine
- Multi filter doesn't work if you type quick

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lazzyvn’s picture

Finally i find out why extensions Buttons doesn't work
- change datatable = $(selector).dataTable(settings); (v 1.9) to datatable = $(selector).DataTable(settings); (v 1.10) (i lost one day to change d -> D :))
- TableTools is retired if i port to version 1.10 is have some issue so that's why i create version only v1.10

lazzyvn’s picture

lazzyvn’s picture

Issue summary: View changes
lazzyvn’s picture

lazzyvn’s picture

FileSize
22.17 KB
lazzyvn’s picture

FileSize
23.2 KB
lazzyvn’s picture

Issue summary: View changes
lazzyvn’s picture

Issue summary: View changes
lazzyvn’s picture

FileSize
83.55 KB
25.27 KB

Hello,
I add
- support ajax data for large data
- filter with selection option
- Langague
- More option for style pager

rivimey’s picture

Title: Support version 1.10.13 » Support dataTables.js version 1.10.13

lazzyvn many thanks for your work. However, if you are hoping someone will commit this to the module, you should:

- post a difference file (patch) to the existing module, to enable reviewers to see what's changed;
- set status to 'needs review' and then if a reviewer sets 'needs work', update the patch the patch and re-set to 'needs review'.

lazzyvn’s picture

oh i did it with my custom module for longtime ago and my custom module only works for version 1.1x I changed 80% module origin
i dont think it will compatible for another one I think new branch and new version for version 1.10.x

rivimey’s picture

Status: Active » Closed (outdated)

Ok then. I think the right thing to do is close it.

lazzyvn’s picture

why you want close it? i think somebody need support some new plugin for datatables like bootstrap, ajax...
Right thing is create new version i dont know how to create it

lazzyvn’s picture

FileSize
53.01 KB

I create patch for version dev

geek-merlin’s picture

Status: Closed (outdated) » Needs review
Issue tags: -datatables, -1.10.13

So it has a patch to test.

ar-jan’s picture

Thanks lazzyvn!

Some notes (including perhaps general ones not specific to this patch, since I haven't used this module before).
- Patch applies correctly to 7.x-1.x-dev
- A dependency on libraries module might be useful - I placed the datatables library in sites/all/libraries, but didn't have the libraries module enabled.
- The status page could show the installed library version.
- If this patch becomes a new branch (no idea), perhaps sites/all/libraries should become the only supported mechanism for loading the library?
- Initially I got TypeError: $(...).val(...).attr(...).on is not a function, and didn't get the filtering functionality working. This appears to be because the on() function requires jquery 1.7.1. I installed jquery_update, configured jquery v. 1.10 and then it started working.

Cheers

ar-jan’s picture

Ah, a few more things (again, not sure if this is specific to this port or not, maybe they should be feature requests):

- Multi-filter only works when "Enable the search filter box" is also enabled. Would be good if they can function independently.
- Typing some multi-filter search text always also sorts the column, if sorting is enabled. It would be great if clicking in the multi-filter search box did not trigger sorting, and only clicking on the column name would.
- Column width resizing didn't work for me.

lazzyvn’s picture

I remember datatable 1.10.x is support jquery 1.8+
another plugin, add on, extensions must be place in sites/all/libraries/datatables/extensions (with version 1.10.x and "extras" in version 1.9)
download newest version with check all option https://datatables.net/download/index remove version exemple FixedHeader-3.1.3 -> Fixedheader
=> sites/all/libraries/datatables/extensions/FixedHeader

Multi-filter you got 2 options HEADER and FOOTER
If you choose header you will have bug with sorting (this issue native datatable i reported it i hope it will fix in version 1.10.20)
but you can use filter at footer it works fine
Column width resizing? what is it? i use bootstrap so it is reponsive native

lazzyvn’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

update new version https://www.drupal.org/node/2919790
this version is obsolet