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

Tree node expand after browser back button click

2 Answers 30 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 27 Nov 2013, 01:47 AM
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 Answers, 1 is accepted

Sort by
0
Scott
Top achievements
Rank 1
answered on 27 Nov 2013, 03:08 AM
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?



0
Nencho
Telerik team
answered on 29 Nov 2013, 01:08 PM
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.
Tags
TreeView
Asked by
Scott
Top achievements
Rank 1
Answers by
Scott
Top achievements
Rank 1
Nencho
Telerik team
Share this question
or