denghp / jquery-datatables-column-filter

Automatically exported from code.google.com/p/jquery-datatables-column-filter
0 stars 0 forks source link

Support for multi select list filters #55

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Do you think you could add support for multi-select filters.

I see other people are interested in this too 
(http://www.datatables.net/forums/discussion/8051/is-multiple-value-column-filte
ring-possible-like-in-an-excel-file-which-shows-a-list-check-box/p1) so it 
should be a nice feature.

An example of UI for such a dropdown is dropdown1 at 
http://dingyonglaw.github.com/bootstrap-multiselect-dropdown/#forms

I might give this a go myself, but I will probably just implement it server 
side - and I would need a pointer about best practice for sending data... 

When someone is searching for two values, is it reasonable to send them as 
'value1,value2' and do a split on the server, then add those as OR clauses? 

Original issue reported on code.google.com by mcintyre...@gmail.com on 27 Feb 2012 at 4:00

GoogleCodeExporter commented 9 years ago
Hi,

I will consider this as an improvement.
Issue I see is that multi-select list is not compact enough to fit into the the 
cell. There is a similar example with check boxes see 
http://jquery-datatables-column-filter.googlecode.com/svn/trunk/checkbox.html. 
In this case as I could not put it into the cell this check box list is placed 
into the popup.
Again this is not compatible with the external form search because I still 
cannot put check box list sometime in the popup and in another cases in the 
form. Therefore it is still not in the mainstream version.

If you have some neat design/solution for this I will consider creating 
somethign similar in this plugin.

Original comment by joc...@gmail.com on 29 Feb 2012 at 6:24

GoogleCodeExporter commented 9 years ago
This could be a neat design for such a filter:
http://www.erichynds.com/examples/jquery-ui-multiselect-widget/demos/#basic

thanks so much!

Original comment by talad...@gmail.com on 22 May 2012 at 9:54

GoogleCodeExporter commented 9 years ago
Regarding this implementation. 
http://jquery-datatables-column-filter.googlecode.com/svn/trunk/checkbox.html

Is there a way for the checkbox type to automatically create checkboxes of all 
column values if user doesn't specify "values" list?  Similar to "select" 
option.  This currently doesn't work for checkbox.  If user puts 
{type:"checkbox"} with no values, then checkbox doesn't create, but example 
code has {type:"checkbox", values:null}.  This also doesn't work for me.

Original comment by KAkkape...@gmail.com on 10 Sep 2012 at 9:52

GoogleCodeExporter commented 9 years ago
Any update on this?

Original comment by harrison...@gmail.com on 1 Jul 2013 at 3:06