Here is what I did to temporarily solve this, but I would appreciate if someone could tell me the proper way to do this:
<script language="javascript" type="text/javascript">
function NodeDoubleClicked(diagram, args) {
__doPostBack('<%= Btn_DoubleClick.UniqueID %>', 'OnClick');
}
</script>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<ndiag:DiagramView ID="diagramView" runat="server" Style="left: 0px; width: 480px;
position: absolute; top: 0px; height: 480px"
ClientSideMode="JavaApplet"
LinkCreating="onLinkCreating"
LinkCreatedScript="onLinkCreated"
NodeCreatingScript="onNodeCreating"
NodeCreatedScript="onNodeCreated"
NodeModifyingScript="onNodeModifing"
NodeModifiedScript="onNodeModified"
NodeDoubleClickedScript="NodeDoubleClicked" />
<asp:Button ID="Btn_DoubleClick" runat="server" Style="left: 654px; position: absolute; top: 490px"
Text="DoubleClick" Width="111px" OnClick="LocationDoubleClicked" />
In aspx:
protected override void Render(HtmlTextWriter writer)
{
ClientScript.RegisterForEventValidation(Btn_DoubleClick.UniqueID, "OnClick");
base.Render(writer);
}
protected void LocationDoubleClicked(object sender, EventArgs e)
{
Show("Node Double clicked");
Diagram diagram = diagramView.Diagram;
//Show(diagram.FindNode("rectangleLane1").Id.ToString());
//ShapeNode currShape = e.Node as ShapeNode;
}
By the way for some reason my problem of diagram shapes being refreshed are solved too, for now.