Tree node expand after browser back button click

3 posts, 0 answers
  1. Scott
    Scott avatar
    2 posts
    Member since:
    Apr 2012

    Posted 26 Nov 2013 Link to this post

    Hello,

    Background:
    I'm using a RadTreeView within a custom module in DNN 7.

    Problem:
    When I click the browser's back button (probably in all browsers, but tested in Safari and Chrome with same results) and try to load nodes, I get a 500 err. The message is "Server.Transfer cannot be called in a Page callback." and the details are: "System.ApplicationException: Server.Transfer cannot be called in a Page callback." The stack trace is: 

    [ApplicationException: Server.Transfer cannot be called in a Page callback.]
       System.Web.HttpServerUtility.Transfer(String path) +4699542
       DotNetNuke.Framework.PageBase.OnError(EventArgs e) +478
       System.Web.UI.Page.HandleError(Exception e) +164
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +12290451
       System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +12289981
       System.Web.UI.Page.ProcessRequest() +119
       System.Web.UI.Page.ProcessRequest(HttpContext context) +99
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +913
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165

    Has anyone ever seen this issue before?

    Thanks,
    SP




  2. Scott
    Scott avatar
    2 posts
    Member since:
    Apr 2012

    Posted 26 Nov 2013 Link to this post

    The root cause was invalid viewstate because I expanded a tree node and loaded more nodes before navigating away from the page, and so when I come back the view state is different from what it was originally. If I turn off EnableEventValidation in web.config the problem goes away. However, that's a bit of a risk, so is there a way to get the RadTreeView to work with EnableEventValidation set to true?



  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Nencho
    Admin
    Nencho avatar
    1457 posts

    Posted 29 Nov 2013 Link to this post

    Hello Scott,

    We tested the RadTreeView control and it is working just fine when used on a page that is deployed on a server. I would suggest that you refer to the DotNetNuke forums/support service as they could provide an answer to question related to Telerik controls when integrated in DNN. Note that any DNN related questions are out of our scope and their support will handle them more accurately. They have a page dedicated to issues with Telerik products here.

    In addition, would you provide us with the implementation of the RadTreeView that you are using, along with the steps to reproduce the issue locally?

    Regards,
    Nencho
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top