JQuery DataTable Column Filter - External Form - pre-selected filter

JQuery DataTable Column Filter - External Form - pre-selected filter

alusscalussc Posts: 18Questions: 0Answers: 0
edited March 2013 in DataTables 1.9
Hi,

we use the Query DataTable Column Filter Plugin (External Form)
http://jquery-datatables-column-filter.googlecode.com/svn/trunk/external.html]
to get our data filtered. Example:
[code]{ type:"select", sSelector: "#Filter", values: ['Option1', 'Option2', 'Option3'] }[/code]

I would like to set the first Option as default (not "All"), Option2 (and Option 3 and so on) should be a subset of Option1 (that means it should filter the data for two key words (Option1 and Option2 ) but should only show Option2) and the All-Option (unfiltered table) should be shown as last one in the list.

Any ideas how to make this work?

Regards, aluscc

Replies

  • alusscalussc Posts: 18Questions: 0Answers: 0
    Anyone an idea?
    By the way: I realized the thread was posted in the wrong subforum - could an admin move it to "Plug-ins" or "General"?
  • alusscalussc Posts: 18Questions: 0Answers: 0
    No one an idea what to do :) ?
  • alusscalussc Posts: 18Questions: 0Answers: 0
    A last try...
  • allanallan Posts: 63,383Questions: 1Answers: 10,449 Site admin
    The column filtering plug-in is not part of the DataTables project - it is a third party library. I'd suggest you open an issue on that projects tracker perhaps.

    Allan
  • alusscalussc Posts: 18Questions: 0Answers: 0
    I had a look on your website and came to the conclusion that it should be possible to resolve this with the standards plus some extra code. Maybe you can nudge me in the right direction:
    I'ld like to initialize the table with some rows hidden. The hidden rows have a common keyword to indicate them. But it should be possible to make the hidden rows visible (only these!) by clicking on a select-menu entry (like here http://www.datatables.net/release-datatables/examples/api/multi_filter_select.html). Any Idea?
  • alusscalussc Posts: 18Questions: 0Answers: 0
    Got it work with this modification the author of the add-on: http://code.google.com/p/jquery-datatables-column-filter/source/detail?r=69&path=/trunk/media/js/jquery.dataTables.columnFilter.js
    The only thing I couldn't resolve until now is how change the position of the "All"-Select-Entry on top (the default setting of the filter, that means an empty filter), that seems not to be defined anywhere...
This discussion has been closed.