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

GridViewColumn Tooltip

1 Answer 57 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Victor
Top achievements
Rank 1
Victor asked on 17 Nov 2010, 12:19 AM
Hi,

I'm using the latest version of RadControl and I need to set tooltip for GridViewColumn in a way the column bind to a feild and the tooltip bind to another feild .

by using silverlight datagrid ,here was how I implemeted it:

 

<data:DataGridTemplateColumn Header="Filter">
    <data:DataGridTemplateColumn.CellTemplate>
        <DataTemplate>
            <TextBlock Text="{Binding Description}" ToolTipService.ToolTip="{Binding FilterHint}" Width="100" Margin="0,5"/>
        </DataTemplate>
    </data:DataGridTemplateColumn.CellTemplate>
</data:DataGridTemplateColumn>

 

 

In telerik ,I have tried this and it didn't work

 

 

<GridView:GridViewDataColumn Header="Filter" Width="230" DataMemberBinding="{Binding Description}"  IsReadOnly="True">
                    <GridView:GridViewDataColumn.ToolTipTemplate>
                        <DataTemplate>
                            <StackPanel>
                                <TextBlock Text="{Binding FilterHint}" Width="100" Margin="0,5"/>
                            </StackPanel>
                        </DataTemplate>
                    </GridView:GridViewDataColumn.ToolTipTemplate>
</GridView:GridViewDataColumn>

 

 


Actually I have realized when both GridViewColumn and textBlock bind to one field ,it working . but I need to bind them to different fileds.

I appreciate your help,

Thank you

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 17 Nov 2010, 08:19 AM
Hi,

 I've just asked for more info on another thread with exactly the same post from a different person. 

Regards,
Vlad
the Telerik team
See What's New in RadControls for Silverlight in Q3 2010 on Tuesday, November 16, 2010 11:00 AM - 12:00 PM EST or 10:00 PM - 11:00 PM EST: Register here>>
Tags
GridView
Asked by
Victor
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or