Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Problem with expand button click (Read 2514 times)
Bala
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 156
Joined: Apr 21st, 2009
Problem with expand button click
May 28th, 2009 at 5:28am
Print Post  
Hi Stoyan,

When I click on any expand button, all its incoming link and their associated nodes get deleted. This happen when I set diagram.ExpandOnIncoming = true.

But if I set diagram.ExpandOnIncoming = false, all outgoing links and their associated nodes gets deleted.

What I do now, I don't want to delete any node or link while click on expand button.

Please help as soon as possible.

Thanks,
Bala
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Problem with expand button click
Reply #1 - May 28th, 2009 at 7:36am
Print Post  
Hi Bala,

Set ExpandButtonAction = RaiseEvents. This will disable the built-in collapse / expand behavior and only raise the ExpandButtonClicked event.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Bala
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 156
Joined: Apr 21st, 2009
Re: Problem with expand button click
Reply #2 - May 28th, 2009 at 12:24pm
Print Post  
I did this but problem is still same.Is their any other property which needs to be set or reset?

This is working well in my sample application but in my main application it is not working.I have used this code in my main application.

Declared these event in constructor,

Code
Select All
diagram.ExpandButtonPosition = ExpandButtonPosition.OuterLowerRight;
	     diagram.ExpandButtonAction = ExpandButtonAction.RaiseEvents;
	     diagram.ExpandButtonClicked += new NodeEventHandler(diagram_ExpandButtonClicked); 



and Made a function to handle diagram_ExpandButtonClicked(); which is,

Code
Select All
void diagram_ExpandButtonClicked(object sender, NodeEventArgs e)
	 {
	     if (pop != null)
	     {
		   pop.Close();
		   pop = null;
	     }
	     ShapeNode sourceNode = e.Node as ShapeNode;
	     if (sourceNode != null)
	     {
		   OpenPopUp(sourceNode);
	     }

	 } 

.

Now please give some idea where may be the problem?

Thanks in advance,
Bala
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Problem with expand button click
Reply #3 - May 28th, 2009 at 1:26pm
Print Post  
You might be creating a new Diagram instance later in your main application, or perhaps setting the property back to ExpandTreeBranch?
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint