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
Post a Comment