Context menu integration with dataTables

Context menu integration with dataTables

alesnavalesnav Posts: 19Questions: 5Answers: 1

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

This discussion has been closed.