angularjs - Angular UI Grid filter only applies to beginning of cell value -


i'm using angular ui grid in app. set enablefiltering true in options made filter boxes show above columns. great, filters don't work desired.

if cell contains text "i pizza" , type "i like", cell's row shown match. think if type "pizza", "i pizza" cell/row should show up, that's not case.

how can filters allow searching anywhere in text, not beginning?

you can use filter: {condition: uigridconstants.filter.contains} in column definition allow column search anywhere in text.

here's sample column definition in place:

columndefs: [   // default   { field: 'name',     filter: {condition: uigridconstants.filter.contains} },   ... 

Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Magento/PHP - Get phones on all members in a customer group -

session - Logging Out Using PHP -