Hello, I'm using RadControls for Winforms Q2 2010.
I have the following to create a GridCommandCellElement
And then the following in the CellFormatting event...
Problem is that the tooltip is not visible when hovering over the command button in the cell. There is a small bit of padding in the cell that will display the tooltip when hovering over that, but not over the command.
Can seem to find a ToolTipText property for the GridCommandCellElement. Is there something I am missing?
Cheers,
Paully
I have the following to create a GridCommandCellElement
Private Sub AddTaskDetailCommand() Dim commandColumn As New GridViewCommandColumn With commandColumn .Name = "ViewTaskDetail" .FieldName = "AssetChecklistID" .HeaderText = String.Empty .Width = 30 .AllowFiltering = False .AllowGroup = False .AllowHide = False .AllowResize = False .AllowSort = False End With RadGridView1.MasterTemplate.Columns.Insert(0, commandColumn) AddHandler RadGridView1.CommandCellClick, AddressOf RadGridView1_CommandCellClick End SubAnd then the following in the CellFormatting event...
Private Sub RadGridView1_CellFormatting(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.CellFormattingEventArgs) Handles RadGridView1.CellFormatting If (TypeOf (e.CellElement) Is GridCommandCellElement) Then Dim cmdCell = DirectCast(e.CellElement, GridCommandCellElement) Dim colName = cmdCell.ColumnInfo.Name If colName = "ViewTaskDetail" Then e.CellElement.ToolTipText = "View Task Details..." cmdCell.CommandButton.DisplayStyle = DisplayStyle.Image cmdCell.CommandButton.Image = My.Resources.tag_blue_edit End If End If End SubProblem is that the tooltip is not visible when hovering over the command button in the cell. There is a small bit of padding in the cell that will display the tooltip when hovering over that, but not over the command.
Can seem to find a ToolTipText property for the GridCommandCellElement. Is there something I am missing?
Cheers,
Paully
