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

ToolTip does not work

3 Answers 160 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Vitaly
Top achievements
Rank 1
Vitaly asked on 04 Jun 2012, 07:51 PM
Hi,

I use programmatically columns generation:

var col = new GridViewDataColumn
{
     DataMemberBinding =
new Binding(column.Name),
        Header = column.Header,
        ToolTip = new Binding(column.Description)
};
........................

for GridView:

<telerik:RadGridView x:Name="dgvResults" AutoGenerateColumns="False" CanUserDeleteRows="False" SelectionMode="Extended" IsReadOnly="True"
                             ShowGroupPanel="False" CanUserFreezeColumns="False" IsFilteringAllowed="True" RowIndicatorVisibility="Collapsed" ScrollMode="Deferred" EnableRowVirtualization="True" EnableColumnVirtualization="True"
                             ColumnWidth="170">
..............
</telerik:RadGridView>

But I can't see ToolTips for columns.
What is problem?

Thanks!

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 05 Jun 2012, 10:29 AM
Hello,

In order to show a ToolTip for every cell of a column, you have to set the TooltTip at cell level. For that purpose you could apply a style targeting GridViewCell.
For example:

<Style TargetType="{x:Type telerik:GridViewCell}">
            <Setter Property="ToolTip" Value="{Binding RelativeSource={RelativeSource Mode=Self}, Path=Value, Mode=TwoWay}"/>
</Style>

Please let me know how this works for you.

Kind regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Vitaly
Top achievements
Rank 1
answered on 05 Jun 2012, 08:45 PM
Hi Didie,

Thanks for replay. But I need ToolTip for columns in header, not for cell.

Regards,
Dmitry
0
Vlad
Telerik team
answered on 06 Jun 2012, 05:29 AM
Hello,

 You can create a TextBlock, set desired ToolTip for the TextBlock and assign this TextBlock as a column Header. 

Regards,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Vitaly
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Vitaly
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or