|
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);
|