I found how to remove various filter option for all columns, which I'm doing below...
Protected Sub RadGrid1_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGrid1.Init |
Dim menu As GridFilterMenu = RadGrid1.FilterMenu |
For n As Integer = menu.Items.Count - 1 To 0 Step -1 |
Select Case menu.Items(n).Text |
Case "Between", "NotBetween", "IsEmpty", "NotIsEmpty" |
menu.Items.RemoveAt(n) |
End Select |
Next |
End Sub |
I also know I can custom filter each column. But is there a way to alter the base filters for a given DataType?
For instance, for all boolean columns, I'd like to remove "IsNull" and "NotIsNull", without removing those 2 options from the common string and integer filters. By doing it this way, rather than by column, I'll automatically take care of any boolean columns I add later. Is that possible?