This is a migrated thread and some comments may be shown as answers.

Set ToolTip in CheckBox

1 Answer 236 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Marcelo
Top achievements
Rank 1
Marcelo asked on 31 Mar 2010, 09:31 PM
I would like to know if it is possible to set programmatically a tooltip in the GridViewSelectColumn´s checkcoxes.

1 Answer, 1 is accepted

Sort by
0
Accepted
Rossen Hristov
Telerik team
answered on 05 Apr 2010, 12:42 PM
Hi Marcelo,

You can use a CellStyle for the column in question and define the ToolTip there like this:

<Window x:Class="Tooltip.Window1"
    Title="Window1" Height="700" Width="600">
  <Grid>
    <telerik:RadGridView
            Name="clubsGrid"
            AutoGenerateColumns="False">
      <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn
            Header="Name"
            DataMemberBinding="{Binding Name}">
                    <telerik:GridViewDataColumn.CellStyle>
                        <Style TargetType="telerik:GridViewCell">
                            <Setter Property="ToolTip" Value="Some tooltip!"/>
                        </Style>
                    </telerik:GridViewDataColumn.CellStyle>
                </telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn
            Header="Est."
            DataMemberBinding="{Binding Established}"
            DataFormatString="{}{0:yyyy}">
        </telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn
            Header="Stadium"
            DataMemberBinding="{Binding StadiumCapacity}"
            DataFormatString="{}{0:N0}">
        </telerik:GridViewDataColumn>
      </telerik:RadGridView.Columns>
    </telerik:RadGridView>
  </Grid>
</Window>

Of course, you can do the same from code-behind if you want to. I have attached a sample project.

Kind regards,
Ross
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Marcelo
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or