Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic CellClicked event and NodeClicked event (Read 1648 times)
CanadaProgrammer
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 113
Joined: Jun 30th, 2011
CellClicked event and NodeClicked event
Sep 16th, 2015 at 3:34am
Print Post  
when i click a cell, both CellClicked event and NodeClicked event are fired. Is there any way to stop NodeClicked event when I click a cell?
Thanks a lot
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: CellClicked event and NodeClicked event
Reply #1 - Sep 16th, 2015 at 9:21am
Print Post  
You could ignore NodeClicked if args.Node is TableNode, or if there aren't cells at mouse pointer location, depending on what you are trying to achieve (e.g. process clicks only for other kinds of nodes, or still process clicks over table caption):

Code
Select All
void OnNodeClicked(object sender, NodeEventArgs e)
{
    var table = args.Node as TableNode;
    //if (table != null) return;
    if (table != null && table.CellFromPoint(args.MousePosition, ref row, ref col))
        return; 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint