Filter for Datagrid2

0
I have datagrid2 to display some data. I want to add filter which is having Not operator. For example in the image you see I want to display all data which is not(C) value. Is there any such operator exist in the column filter?
asked
2 answers
0

Take a html snippet and put this code 

 

$(document).ready(function() {$('.col-sm-8').find('option:contains(C)').hide();});

 

select jquery option in html snippet. 

 

Edit column change visible to false:

 

 image.png

answered
0

Raghavendra,

 

You can filter the data in 2 ways depending on your need.

 

  1. From source: put something like [YourColumn != 'C']
  2. Client side: put a text filter to your column on the grid 2. Change the default filter to "Not equal". When you run your project and put 'C' to the filter, it will exclude the row which contains 'C' value.

 

Hope it helps.

Huy

answered