Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic inactive shapes (Read 2658 times)
ebibnet
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 15
Joined: Aug 25th, 2008
inactive shapes
Aug 25th, 2008 at 6:30pm
Print Post  

Is it possible to prevent a postback for certain shapes ???? Somehow i am not able to find it .

excerpt code

                       ShapeNode MasterNode = (ShapeNode)diagram.FindNode(NodePrefixType.ShowUnitDetails + fromId);
                       
               

                       ShapeNode footerNode = diagram.Factory.CreateShapeNode(MasterNode.Bounds.X ,
                                                                               MasterNode.Bounds.Y - 4, 4, 4);
                  
                       //MasterNode.AttachTo(footerNode, AttachToNode.TopCenter);
                    
        footerNode.Image = "ImgProcess.gif";
                       
         footerNode.Transparent = true;
         footerNode.ImageAlign = ImageAlign.Center;

         footerNode.ResizeToFitImage();
                  
                 Thanks
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: inactive shapes
Reply #1 - Aug 25th, 2008 at 7:30pm
Print Post  
Are you using Flowchart.NET and the HtmlBuilder class? In that case, setting Hyperlink to an empty string should be enough to prevent postback.
  
Back to top
 
IP Logged
 
ebibnet
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 15
Joined: Aug 25th, 2008
Re: inactive shapes
Reply #2 - Aug 25th, 2008 at 8:40pm
Print Post  
I tried this but it gives me an error
"Object reference not set to an instance of an object."


I'm using latest version of Netdiagram.

Definition in page
<ndiag:diagramview
                       id="m_diagramView"
                       runat="server"   
                       Visible="false"
                       ClientSideMode="ImageMap"
                       OnNodeClicked="HandleDiagramNodeClick"
                       Behavior="DrawShapes"
                       ShowScrollbars="True">
                   </ndiag:diagramview>

Are there other possibilities
Thanks !!!!
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: inactive shapes
Reply #3 - Aug 26th, 2008 at 7:52am
Print Post  
In Netdiagram you can disable postback for some node by setting its Hyperlink to "javascript:void(0)". Setting the Hyperlink value will cause a NullReferenceException only if your DiagramNode variable is not initialized.

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


I love YaBB 1G - SP1!

Posts: 15
Joined: Aug 25th, 2008
Re: inactive shapes
Reply #4 - Aug 31st, 2008 at 10:06pm
Print Post  
Perfect ,

This did the trick, Thanks,
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint