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

template column and tooltip

1 Answer 79 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dawson
Top achievements
Rank 1
Dawson asked on 15 Nov 2013, 12:52 PM
Hi.
I have some columns in my Grid. I want one template column to show tooltip for each row corresponding to the row values of another column.how to obtain this?

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 15 Nov 2013, 01:03 PM
Hi Dawson,

Please try the following code snippet.

ASPX:
<telerik:GridTemplateColumn DataField="CategoryName" HeaderText="CategoryName" SortExpression="CategoryName"
    UniqueName="CategoryName">   
    <ItemTemplate>
        <asp:Label ID="Label1" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.CategoryName") %>'>
        </asp:Label>
        <telerik:RadToolTip ID="RadToolTip1" runat="server" TargetControlID="Label1" Width="150px"
            RelativeTo="Element" Position="MiddleRight">
            <%# DataBinder.Eval(Container, "DataItem.Description") %>
        </telerik:RadToolTip>
    </ItemTemplate>
</telerik:GridTemplateColumn>

Thanks,
Shinu
Tags
Grid
Asked by
Dawson
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or