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

Tooltip on Treelist

1 Answer 69 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Melvis
Top achievements
Rank 1
Melvis asked on 10 Dec 2012, 06:34 PM
I have TreeListTemplateColumn column in my treelist. I would like to show dynamic tooltip when the user hover the template column. For example, I have 2 progress bar within my template column. I would like to show different tooltip for each progress bar depending on data on that row.

Is there an event on client or server side to faciliate this?

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 11 Dec 2012, 10:11 AM
Hi,

Try the following code to achieve your scenario.
aspx:
<telerik:TreeListTemplateColumn >
    <ItemTemplate>
        <telerik:RadProgressArea ID="RadProgressArea2" runat="server">
        </telerik:RadProgressArea>
    </ItemTemplate>
</telerik:TreeListTemplateColumn>
C#:
protected void RadTreeList1_ItemDataBound(object sender, TreeListItemDataBoundEventArgs e)
{
 if (e.Item is TreeListDataItem)
 {
           TreeListDataItem item = e.Item as TreeListDataItem;
           RadProgressArea progress = (RadProgressArea)item.FindControl("RadProgressArea2");
           progress.ToolTip = item["UniqueName"].Text;
 }
}

Thanks,
Shinu.
Tags
TreeList
Asked by
Melvis
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or