I tried to answer this answer, but I had problems. I solved it with a little syntax change (changed grids.columns[2]to grid.getColumn('mycolumn'))
$scope.grid1Api.grid.getColumn('speicialty').filters[0] = {
term: whatever
};
Hope this helps anyone looking
In my particular case, this is all my code:
Controller:
function skillsFunc(job) {
console.log(job);
$scope.grid1Api.grid.getColumn('speicialty').filters[0] = {
term: job
};
};
HTML:
<div class="input-field col s2 locator-margin3">
<label for="skills1" class="locator-label">SPECIAL SKILLS</label>
<select ng-model="vm.skills" ng-change="vm.skillsFunc(vm.skills)" id="skills1" class="browser-default locator-select ">
<option value="1">SKILLS</option>
<option value="Audiolog">Audiologist</option>
<option value="Allerg">Allergist</option>
<option value="Androlog">Andrologist</option>
</select>
</div>
source
share