Nevron Forum

Problem with Expand/Collapse nodes

https://www.nevron.com/Forum/Topic6276.aspx

By Marcelo French - Wednesday, March 21, 2012

Hello I am new to this forum. I have followed this example Expand / Collapse Decorator in http://examplesaspnetdiagram.nevron.com/ but when I click to collapse or expand the node does nothing. I'm debugging the application but the code never calls the method in code behind NDrawingView1_AsyncClick. My aspx has this code:

AjaxEnabled = "true" AsyncAutoRefreshEnabled = "true" ClientId = "NDrawingView1"
AsyncCallbackTimeout = "1000" OnAsyncClick = "NDrawingView1_AsyncClick"
OnQueryAjaxTools = "NDrawingView1_QueryAjaxTools" ClientIDMode = "AutoID" />

What am I doing wrong? Help please!
By Nevron Support - Wednesday, March 21, 2012

Hi Marcelo,

Please, make sure that in the code behind you activate the ajax mouse click callback tool just as in the example you are talking about:

protected void NDrawingView1_QueryAjaxTools(object sender, EventArgs e)

{

    // Configure the client side tools

    NDrawingView1.AjaxTools.Add(new NAjaxMouseClickCallbackTool(true));

}

By Marcelo French - Wednesday, March 21, 2012

Hi, thanks for answering my post. I have that line of code in the code behind but still the diagram does not perform any event by clicking on it.

I've added the relevant lines of code in the web.config
By Nevron Support - Wednesday, March 21, 2012

Hi, in that case there's something else missing in your project. Please, send the whole sample project to our support e-mail (support {at} nevron [dot] com). We will check it out and tell you what's wrong.

By Marcelo French - Thursday, March 29, 2012

Hey. I have sent the email with an attachment to support@nevron.com.

Thank you very much