11

I have a column in my grid which is contains several buttons. I want to only disable the filtering feature in that column.

For example, filtering should be available in office phone but It has to disable in Actions column. I want to remove the textbox in Actions column.

enter image description here

Mahdi
  • 1,777
  • 4
  • 24
  • 48

2 Answers2

22

You can set enableFiltering:false on the Actions field

for example:

 { 
      field: '', enableFiltering: false
 }
Mahdi
  • 1,777
  • 4
  • 24
  • 48
ram hemasri
  • 1,624
  • 11
  • 14
0

You can set the filterHeaderTemplate: '<div class="ui-grid-filter-container"></div>'

columnDefs: [{
    name: 'Name',
    type: 'string',
    filter: {
        condition: uiGridConstants.filter.CONTAINS,
    },
    filterHeaderTemplate: '<div class="ui-grid-filter-container"></div>'
}]

This will not disable the filter feature, but will remove the input box so that user won' t be able to filter by entering txt

António Almeida
  • 9,620
  • 8
  • 59
  • 66
Elio
  • 1