Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Cell click or cell double click events for table node (Read 1388 times)
Shafi
Full Member
***
Offline


I Love MindFusion!

Posts: 109
Joined: Nov 8th, 2016
Cell click or cell double click events for table node
May 10th, 2019 at 12:56pm
Print Post  
Is there a cell click/doubleclick event for table node?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: Cell click or cell double click events for table node
Reply #1 - May 13th, 2019 at 7:39am
Print Post  
Call cellFromPoint method from node double / click event handlers -

Code
Select All
if (node.cellFromPoint)
{
    var cellInfo = node.cellFromPoint(eventArgs.mousePosition);
    if (cellInfo)
    {
        // cellInfo contains { cell..., cellRect..., column..., row...} fields
    }
} 



Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Shafi
Full Member
***
Offline


I Love MindFusion!

Posts: 109
Joined: Nov 8th, 2016
Re: Cell click or cell double click events for table node
Reply #2 - May 14th, 2019 at 11:33am
Print Post  
How can I select a cell and not the node? Currently on click/selection, the complete node is selected.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: Cell click or cell double click events for table node
Reply #3 - May 14th, 2019 at 11:37am
Print Post  
There's no selection of individual cells supported, as selection state mostly pertains to subsequent move / resize operations. You could keep a reference to the cell object as a field of the TableNode if you need to access it later, and set cell's Brush to indicate selection state to users.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint