AngularJS UI-grid filter OR option -


we using ui-grid in 1 of our project , can apply 2 filters on each column supported ui-grid. have filters arrays mentioned below:

{ field: 'age', filters: [     {       condition: uigridconstants.filter.greater_than,       placeholder: 'greater than'     },     {       condition: uigridconstants.filter.less_than,       placeholder: 'less than'     }   ] 

this return rows matches both criteria. perfect.

now add "or" condition in between these filters both filters can applied or 1 of them can applied. don't see support in ui-grid feature. idea how achieve functionality?

any appreciated.

the scope within grid not same controller's scope. therefore, must use grid.appscope:

var cellselecttemplate = '<select ng-change="change(status, row.entity)" ng-model="status" ><option ng-repeat="stat in grid.appscope.datastatuses" value="{{stat.id}}">{{stat.status}}</option></select>'; 

more information:

reference application scope (the parent scope of ui-grid element). assigned in ui-grid controller use gridoptions.appscopeprovider override default assignment of $scope.$parent reference

from (http://ui-grid.info/docs/#/api/ui.grid.class:grid)


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -