dynamically add tootlips to treeview, based on a condition

2 posts, 0 answers
  1. Chris Yoker
    Chris Yoker avatar
    411 posts
    Member since:
    Jul 2005

    Posted 09 Nov 2007 Link to this post

    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

  2. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 13 Nov 2007 Link to this post

    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
Back to Top