Page Index Toggle Pages: 1 [2]  Send TopicPrint
Hot Topic (More than 10 Replies) ASP.net Error while saving file (Read 12019 times)
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ASP.net Error while saving file
Reply #15 - Nov 2nd, 2009 at 8:11am
Print Post  
Hi,

Add a NodeActivatedScript that sets document.getElementById('txtNodeEdit').value = args.getNode().getText();

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


I love YaBB 1G - SP1!

Posts: 20
Joined: Oct 9th, 2009
Re: ASP.net Error while saving file
Reply #16 - Nov 2nd, 2009 at 9:57am
Print Post  
HI,

    Iam using the code which u have sent like this

function funNode_Activated()
{
document.getElementById('txtNodeEdit').value = args.getNode().getText();


}

<ndiag:DiagramView ID="diagramView" runat="server" Style="left: 0px;position: absolute; top: 0px;" NodeCreatedScript="onNodeCreated" NodeDoubleClickedScript="onNodeDoubleClicked" LinkDoubleClickedScript ="onLinkClicked" ModificationStart="AutoHandles"   Behavior="DrawLinks" NodeActivatedScript="funNode_Activated"  Height="500px" Width="1000px" InplaceEditFont="Arial Narrow, 12pt, style=Underline">
<Diagram RowHighlightBrush="s:#FFB9D1EA" EnableStyledText="True" TextColor="Red"  /> </ndiag:DiagramView>

But still iam not getting the node text in to the textbox.Can u please check once.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ASP.net Error while saving file
Reply #17 - Nov 2nd, 2009 at 12:40pm
Print Post  
Hi,

The handler function must be declared with two parameters; try this:

function funNode_Activated(sender, args)
{
     document.getElementById('txtNodeEdit').value = args.getNode().getText();
}

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


I love YaBB 1G - SP1!

Posts: 20
Joined: Oct 9th, 2009
Re: ASP.net Error while saving file
Reply #18 - Nov 3rd, 2009 at 3:24pm
Print Post  
Hi stoyo
is it possible to loop the nodesin clientside .i.e using javascript

if yes can you send me samplecode please

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ASP.net Error while saving file
Reply #19 - Nov 3rd, 2009 at 3:46pm
Print Post  
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint