Context menu integration with dataTables
Context menu integration with dataTables
Hello,
Sometimes I integrate something with DataTables and would like to publish it in here. Maybe it is useful for someone.
I have integrated DataTables (with jquery-ui enabled) and jquery.ui-contextmenu ( https://github.com/mar10/jquery-ui-contextmenu ). Here is the demo: http://live.datatables.net/caderego/1
You can open that context menu right-clicking in any cell and will see two simple options: Filter and Remove filter. It filters with exact matching using regex.
My only "problem" is that I need the ColReorder to get the real column-id in the case that any hidden column exists before the column you want to filter. I use "data-column-index" set by ColReorder to get the real column index.
Hope you like it! And if any of you want to provide some better solution, please, do it :P
Thanks!
Replies
Well, as I've just migrated my code to DataTables 1.10 methods, I have just updated this integration:
http://live.datatables.net/savuvija/1
Hope it helps!