I am having a problem with clearing filter value. I need to set ListOfFilterValues = Nothing for a GridBoundColumn. My code is as follows:
If TypeOf column Is GridBoundColumn Then
Dim boundColumn As GridBoundColumn = TryCast(column, GridBoundColumn)
boundColumn.FilterListOptions = GridFilterListOptions.AllowAllFilters
DirectCast(column, Telerik.Web.UI.GridBoundColumn).ListOfFilterValues = Nothing
End If
However I am getting the error
Error 1 'Telerik.Web.UI.GridColumn.Protected Friend Property ListOfFilterValues As String()' is not accessible in this context because it is 'Protected Friend'.
Any solution?
Thanks
If TypeOf column Is GridBoundColumn Then
Dim boundColumn As GridBoundColumn = TryCast(column, GridBoundColumn)
boundColumn.FilterListOptions = GridFilterListOptions.AllowAllFilters
DirectCast(column, Telerik.Web.UI.GridBoundColumn).ListOfFilterValues = Nothing
End If
However I am getting the error
Error 1 'Telerik.Web.UI.GridColumn.Protected Friend Property ListOfFilterValues As String()' is not accessible in this context because it is 'Protected Friend'.
Any solution?
Thanks