Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Table Node Issue Hyperlink not working (Read 3382 times)
kunal
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 5
Joined: Jul 30th, 2013
Table Node Issue Hyperlink not working
Aug 1st, 2013 at 8:34pm
Print Post  
In the code below, I am using ImageMap. The Hyperlink in the second row is not working. It just shows the text and is not clickable. First one works fine

Also, how do I make the second row as a click event with post back while the first row can stay as a hyperlink. Is that possible?

System.Drawing.StringFormat centerAlign = new System.Drawing.StringFormat();
centerAlign.Alignment = System.Drawing.StringAlignment.Center;
centerAlign.LineAlignment = System.Drawing.StringAlignment.Center;

TableNode node1 = DiagramView1.Diagram.Factory.CreateTableNode(x, y, 25, 20,1,2);
//node1.EnableStyledText = true;

node1.Id = text;
node1.Caption = string.Empty;
node1.CaptionHeight = 0f;
node1.CellFrameStyle = CellFrameStyle.None;

node1[0, 0].Text = "View Details";
//node1[0, 0].HyperLink = "default.aspx";
node1[0, 0].TextBrush = new SolidBrush(Color.DarkBlue);
node1[0, 0].Brush = new SolidBrush(System.Drawing.Color.Beige);
node1.Rows[0].Height = 4;
node1[0, 0].Font = new Font("Verdana", TextSize, System.Drawing.FontStyle.Underline | System.Drawing.FontStyle.Bold); ;
node1[0, 0].TextFormat = centerAlign;

node1[0, 1].Text = "Stuff..";
node1[0, 1].HyperLink = "default.aspx";
node1.Rows[1].Height = 20-4;
node1[0, 1].Brush = new SolidBrush(System.Drawing.Color.White);
node1[0, 1].Font = new Font("Verdana", TextSize);
node1[0, 1].TextFormat = centerAlign;
node1[0, 1].TextBrush = new SolidBrush(Color.DarkBlue);

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Table Node Issue Hyperlink not working
Reply #1 - Aug 2nd, 2013 at 8:43am
Print Post  
It seems that's a bug where the control does not generate areas for only partially visible rows, but counts pen widths in the calculation and decides the second row does not fit. Our developers will fix it in next few days; for the time being you could make the last row a bit smaller as a work-around:

node1.Rows[1].Height = 20 - 4 - 0.01f;

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Table Node Issue Hyperlink not working
Reply #2 - Aug 2nd, 2013 at 5:08pm
Print Post  
That should be fixed in this version:
https://mindfusion.eu/_beta/netdiag_lastrow.zip

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
kunal
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 5
Joined: Jul 30th, 2013
Re: Table Node Issue Hyperlink not working
Reply #3 - Aug 6th, 2013 at 4:41am
Print Post  
Thanks. the 0.01f fixed the problem. ill download the new version and try that as well
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint