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

Walkthrough: customizing RadTreeView: adding custom context menu trigger

1 Answer 71 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Shukhrat Nekbaev
Top achievements
Rank 1
Shukhrat Nekbaev asked on 14 Oct 2011, 07:05 PM
Hi,

for those who would like to have custom context menu trigger element this post might be helpful:
http://weblogs.asp.net/evovision/archive/2011/10/14/customizing-radtreeview-adding-custom-context-menu-trigger.aspx

I've attached a file with 3 screenshots.

To Telerik support:
in that post I write:Note that when you click on "gear" highlighting of node item may disappear. This will happen if EnableDragAndDrop is not set or false. I haven't though how to solve that because in my use case I have EnableDragAndDrop="true", but I will ask Telerik support about possible solution.

Could you please provide missing adjustments so that no matter what value is set to EnableDragAndDrop property highlighting doesn't go away. I guess it's because when it's not set control thinks that it should remove highlight after click event, but when value is set control assumes that drag'n'drop operation may happen and preserves highlighting. I have it enabled in my project (not because of this :), so currently can't spend more time on it.

Thank you!

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 19 Oct 2011, 04:50 PM
Hi Shukhrat,

You can set it as it is done in the ContextMenu demo in the OnClientContextMenuShowing event.

Kind regards,
Plamen Zdravkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
TreeView
Asked by
Shukhrat Nekbaev
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or