If you don't like the way the RadGridView adds the Filter text (e.g. Contains, Equals, etc) in the Filter row, you can use this code that I wrote. The text is unreadable in skinnier columns. Plus, it confused my users since clicking on the word "Contains" did not automatically allow them to start typing; they had to click next to the word.
Anyways, this code simply collapses the text element and adds a tooltip to the filter row's cell and button.
I now use this on all my grids within my current project. It would be nice if something similar was built in. If it is already, then I've missed it in the documentation.
Feel free to offer code improvements or another way.
Anyways, this code simply collapses the text element and adds a tooltip to the filter row's cell and button.
Private Sub RadGridView1_ToolTipTextNeeded(ByVal sender As Object, ByVal e As Telerik.WinControls.ToolTipTextNeededEventArgs) Handles RadGridView1.ToolTipTextNeeded If TryCast(sender, GridFilterCellElement) IsNot Nothing Then e.ToolTipText = CType(sender, GridCellElement).ToolTipText End IfEnd SubPrivate Sub RadGridView1_ViewCellFormatting(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.CellFormattingEventArgs) Handles RadGridView1.ViewCellFormatting HideFilterText(e.CellElement)End SubFriend Sub HideFilterText(ByVal CellElement As GridCellElement) Dim oFilterCellElement As GridFilterCellElement Try If TryCast(CellElement, GridFilterCellElement) IsNot Nothing Then oFilterCellElement = CType(CellElement, GridFilterCellElement) oFilterCellElement.ToolTipText = oFilterCellElement.FilterOperatorText.Text.Replace(":", "") oFilterCellElement.FilterButton.ToolTipText = oFilterCellElement.FilterOperatorText.Text.Replace(":", "") oFilterCellElement.FilterOperatorText.Visibility = Telerik.WinControls.ElementVisibility.Collapsed End If Catch ex As Exception ' Do nothing End TryEnd SubI now use this on all my grids within my current project. It would be nice if something similar was built in. If it is already, then I've missed it in the documentation.
Feel free to offer code improvements or another way.