Disabling Context menu item at runtime

6 views
Skip to first unread message

Vivek

unread,
Feb 4, 2010, 9:46:26 AM2/4/10
to astreeview
Hi,

Let's there are the following context menu items

a) Add
b) Edit
c) Delete

When the user right clicks on certain treeview nodes; i want "Delete"
context menu to be disabled and for all other nodes "Delete" menu item
should be enabled. Has anyone tried such thing.

Thanks
Vivek

Weijie JIN

unread,
Feb 4, 2010, 9:53:09 AM2/4/10
to astre...@googlegroups.com
Hello Vivek,

you can set the nodes' property EnableDeleteContextMenu=true which you want to disable delete menu.

Weijie
--
Best Regards,

Weijie JIN
Reply all
Reply to author
Forward
0 new messages