NodeClick event not firing

4 posts, 0 answers
  1. Steven Black
    Steven Black avatar
    44 posts
    Member since:
    Feb 2008

    Posted 23 Apr 2009 Link to this post

    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








  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 24 Apr 2009 Link to this post

    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.
  3. Steven Black
    Steven Black avatar
    44 posts
    Member since:
    Feb 2008

    Posted 24 Apr 2009 Link to this post

    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

  4. Deniz
    Deniz avatar
    1 posts
    Member since:
    May 2011

    Posted 22 May 2011 Link to this post

    Hi Steven.

    Can you send me example about solved this problem Please
Back to Top