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

dynamically add tootlips to treeview, based on a condition

1 Answer 95 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Chris Yoker
Top achievements
Rank 1
Chris Yoker asked on 09 Nov 2007, 04:08 PM
2007.2.1010.0
asp.net 2.0

hiya,

This post is a bit of a mix, but I thought best to post here.

I'll explain what I need.

I have a treeview.

IF the user is in ADMIN role, I want the treeview to have the "NodeClick" event.

..otherwise, I'd like to dynamically add a Prometheus tooltip to the treeview node.The "NodeClick" event should also be disabled.

Is this possible?
Please let me know if I should clarify.

Many thanks,

yogi

1 Answer, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 13 Nov 2007, 07:49 AM
Hello Chris Yoker,
Please have a look the this code library project. It demonstrates how you can add RadToolTips for the RadTreeView nodes dynamically.

As for disabling the NodeClick event, you can use the BeforeClientClick event, and in the handler just return false.

Best wishes,
Tsvetie
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ToolTip
Asked by
Chris Yoker
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Share this question
or