RadTreeView and RadDropDownMenu not appering as wanted

4 posts, 0 answers
  1. Jill-Connie Lorentsen
    Jill-Connie Lorentsen avatar
    118 posts
    Member since:
    Nov 2008

    Posted 17 Feb 2009 Link to this post

    I use RadTreeView, and a RadDropDownMenu assosiated with it.

    I would like the drop down menu NOT to be shown for nodes at level 0, but I haven't figured out how to do this. Any ideas?

    Also, the drop down menu appears if I right click to the right of the nodes in the tree view. Is there a way to check whether the user has clicked on the actual node?

    Thank you!
  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 20 Feb 2009 Link to this post

    Hi Jill-Connie Lorentsen,

    Thank you for writing.

    There is a really easy way to accomplish this. I have attached a small sample application to demonstrate that. In short, there is a bool flag that tells whether the drop down should be shown or not. The flag depends on whether the mouse is over a node.

    I hope you will like the solution. Please write back if you have other questions.

    Kind regards,
    Victor
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Jill-Connie Lorentsen
    Jill-Connie Lorentsen avatar
    118 posts
    Member since:
    Nov 2008

    Posted 23 Feb 2009 Link to this post

    Thank you for your reply and the sample application.

    This only solved one of my problems, though. Still the drop down menu appears when the user clicks to the right of the node. Is there a way to check whether the user has clicked an actual node? It seems like the node fills the entire width of the RadTreeView, and not only the part of the text, if you understand what I mean.

    Regards, Jill-Connie
  5. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 23 Feb 2009 Link to this post

    Hello Jill-Connie Lorentsen,

    Thank you for writing. I have attached another application. I think that everything works now. Please write back if you need further assistance.

    Regards,
    Victor
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top