Nevron Forum

Right click Node in NTreelist

https://www.nevron.com/Forum/Topic4640.aspx

By Jan Dijkstra - Wednesday, December 15, 2010

How can I get node info when I rightclick on a node in the NTreelist in the follwing situation?

I am able to left click a node and get the info with the itemnotifycode:

void nTreeList1_ItemNotify(object sender, NLightUIItemNotifyData data)

switch (data.NotifyCode)

{

case NItemsControl.ItemLabelClickNotifyCode : NTreeNode node = data.Sender as NTreeNode;

 

Unfortunally this only works for left mouse down...

 

By Nevron Support - Wednesday, December 15, 2010

Hi Jan,

Instead of checking whether notify code is ItemLabelClickNotifyCode you can check whether it is ItemContextMenuDisplayingNotifyCode.
This notify code occurs when the right button of the mouse is clicked.
By Jan Dijkstra - Friday, December 17, 2010

Woaoaoa
It works! THNX!