direct-fuel-injection / bbGrid

Grid system on Backbone.js and Bootstrap, sure jQuery :)
http://direct-fuel-injection.github.com/bbGrid
138 stars 59 forks source link

Default value for a filter #77

Open MadeByKarl opened 8 years ago

MadeByKarl commented 8 years ago

Hello! I can't figure out how to set a default value for a column filter. I'd like to do something like the following example but I'm not sure how to achieve this :/.

colModel: [ ...
{title: 'Status', name: 'status', index: true, filter: true, filterValue: 'Open'}, ... ]

Any help greatly appreciated! :)

MadeByKarl commented 8 years ago

Help or pointers anyone?

unematiii commented 8 years ago

I believe the property you are looking for is called filterColName .

MadeByKarl commented 8 years ago

Hey, thanks for the reply. Meanwhile I worked something more as a work-around but I'll check this when I get back to this project. Cheers.