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

Draging a raddock into another radzone cause page null error

1 Answer 25 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Fred Hsu
Top achievements
Rank 1
Fred Hsu asked on 28 May 2010, 01:52 PM
Hi, Expert,

I have a issue with raddock and would like to have help from you.
We have a parent window with script manager, and then pop up radwindow.
On the radwindow, we have one big radzone (BigZone) with lots of raddock(dynamically created) and some small zones with only one raddock. And there is a save button to save it which cause the postback).
Dragging the raddock from the BigZone to the small zones, then save it has no problem.
However if dragging the raddock from any of small zone to the BigZone, and then save it, the rad window thrown exception:

Exception Details:
System.InvalidOperationException: Page cannot be null. Please ensure that this operation is being performed in the context of an ASP.NET request.

The detail exception points  to GetScriptManager:
[InvalidOperationException: Page cannot be null. Please ensure that this operation is being performed in the context of an ASP.NET request.]
   Telerik.Web.UI.ScriptRegistrar.GetScriptManager(Control control) +169
   Telerik.Web.UI.RadWebControl.get_ScriptManager() +15

In our codes, when adding dock to zone, we didn't add the raddock in raddocklayout, just the zone, does that matter?
Attachment is the error widow.


1 Answer, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 02 Jun 2010, 06:09 PM
Hello Fred,

Such an error has not been reported before, and I couldn't reproduce the problem locally. Could you please provide some sample code, that will help us recreate the issues locally?
From the screenshot I noticed that you have used server code ( "<% %>") within your javascript. Could you please place all of your <script/>'s within a telerik:RadScriptBlock or telerik:RadCodeBlock, and see if the problem disappears?

Regards,
Pero
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Dock
Asked by
Fred Hsu
Top achievements
Rank 1
Answers by
Pero
Telerik team
Share this question
or