This is a migrated thread and some comments may be shown as answers.

NodeClick event not firing

3 Answers 137 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Steven Black
Top achievements
Rank 1
Steven Black asked on 24 Apr 2009, 02:54 AM
I have a radTreeView control in a ContentPage.  I am loading the nodes dynamically at runtime.  My MasterPage contains a radAjaxPanel and the ContentPane is contained within the panel, so all of my Content Pages are ajaxified.  This has been working great up until now.

When I click on a node in my radTreeView, the NodeClick event is fired THE FIRST TIME.  If I subsequently click on another node, the event is not fired and I'm getting the following error:

Sys.WebForms.PageRequestManagerServerErrorException:  An unknown error occurred while processing the request to the server.  The status code returned from the server was: 500

I've seen other posts that say to load my nodes using ExpandedMode = TreeNodeExpandedMode.ServerSide, but that didn't seem to do anything.  I saw some other posts that said to add EnablePartialRendering="false" to my radScriptManager.  That fixed the problem, but of course now nothing is ajaxified anymore. 

Then I remembered that on another page in my in my application I have a radUploadFile control.  This doesn't work properly when ajaxified, so I had to disable Ajax for this control.  I decided to do the same thing for my radTreeView and it worked just fine (if you need to see how I did this please let me know).

So, that's where I stand right now.  My radTreeView is not utilizing Ajax, but I'd like it to if I can.  Any idea how to fix this issue?  Again, I have no problems with expanding nodes.  My problem is that the NodeClick event is not firing EXCEPT FOR THE FIRST TIME when ajaxified.

Thanks.

Steve








3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 24 Apr 2009, 10:07 AM
Hi Steven Black,

You can try debugging (make sure the debugger is set to break on exceptions). Once the error occurs the debugger will break and this would probably indicate the reason for the exception.

Regards,
Albert
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Steven Black
Top achievements
Rank 1
answered on 24 Apr 2009, 05:54 PM
I neglected to mention in my original post that the radTreeView was within a user control.  I was able to fix my problem.

Even though I have a radAjaxPanel in my master page and my ContentPane is contained within it, I still need to add another radAjaxPanel in my user control and put the radTreeView inside it. 

Perhaps you can explain why the radAjaxPanel is necessary in the user control even though my user control is being used within a page that is itself already wrapped in another radAjaxPanel.  I only seem to have this problem with the radTreeView too - all of the other Telerik controls that I've been using so far are working fine without a second radAjaxPanel.

Nevertheless my problem is solved and the radTreeView NodeClick event is firing and ajaxified.

Thanks.

Steve

0
Deniz
Top achievements
Rank 1
answered on 22 May 2011, 03:00 PM
Hi Steven.

Can you send me example about solved this problem Please
Tags
TreeView
Asked by
Steven Black
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Steven Black
Top achievements
Rank 1
Deniz
Top achievements
Rank 1
Share this question
or