Draging a raddock into another radzone cause page null error

2 posts, 0 answers
  1. Fred Hsu
    Fred Hsu avatar
    2 posts
    Member since:
    May 2010

    Posted 28 May 2010 Link to this post

    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.

  2. Pero
    Pero avatar
    1156 posts

    Posted 02 Jun 2010 Link to this post

    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?

    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top