jayzakung / jquery-datatables-column-filter

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

selected option value when page is loading #81

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
is possible set default option value in select filter  when the page is loading?

i have column "status" which has values (open, closed) and i need set default 
value "open" when the page is loading.

is it possible ? thx

Original issue reported on code.google.com by tomas.tr...@gmail.com on 31 Jul 2012 at 8:11

GoogleCodeExporter commented 8 years ago
I am also interested in this issue in my nowadays projects

Original comment by frederic...@gmail.com on 9 Aug 2012 at 1:54

GoogleCodeExporter commented 8 years ago
Hi,

It is possible since version 1.5.0. See how it is setup on 
http://jquery-datatables-column-filter.googlecode.com/svn/trunk/customFilters.ht
ml.

Regards,
Jovan

Original comment by joc...@gmail.com on 4 Sep 2012 at 8:54

GoogleCodeExporter commented 8 years ago
Hi Jovan,

Thanks for this nice update.
On the mentionned page there is only the case of the select :
ie : aoColumns: [ { type: "select", values: [ 'Gecko', 'Trident "New"', 
'Trident', 'KHTML', 'Misc', 'Presto', 'Webkit', 'Tasman'], selected: 'Misc'  },

Could your provide an instance for the type: "text" and the type: "checkboxes".

It would be very helpfull.

Thanks again for this nice enhancement.

Fred

Original comment by frederic...@gmail.com on 5 Sep 2012 at 7:51

GoogleCodeExporter commented 8 years ago
Hi Jovan,

I tried this enhancement, it worked. But the search is working no more. The 
search is called this way:
"$('#DataTablesExternalSearch').keyup(function(e){oTable.fnFilter( 
$(this).val());});"

Any ideas?

Regards, Phil

Original comment by philip.m...@gmail.com on 17 Jun 2013 at 11:21

GoogleCodeExporter commented 8 years ago
Here's a patch that enables 'selected' for numbers and text too. Example:

aoColumns: [ { type: "text", selected: 'Something' }, .... ]

Original comment by brun...@corollarium.com on 13 Nov 2013 at 4:39

Attachments: