Saving State of Dynamically Created RadDocks in DataBase using Hidden UpdatePanel

Thread is closed for posting
3 posts, 0 answers
  1. 63F75A2C-1F16-4AED-AFE8-B1BBD57646AD
    63F75A2C-1F16-4AED-AFE8-B1BBD57646AD avatar
    1572 posts
    Member since:
    Oct 2004

    Posted 03 Dec 2009 Link to this post

    Requirements

    RadControls version

    Telerik.Web.UI 2009.3.1103.0+
    .NET version

    NET 2.x/3.x
    Visual Studio version

    2005/2008
    programming language

    C# and VB
    browser support

    all browsers supported by RadControls


    PROJECT DESCRIPTION
    The attached example demonstrates how to dynamically create RadDock objects and save their state in a DataBase. It is based on the my portal online demo for the RadDock.

    The RadDock controls are added to a "hidden" (placed inside a <div> element with display:none) UpdatePanel and after that, with a client-script registered from the server, moved to the respective RadDockZone.

    <div style="display: none"
    Hidden UpdatePanel, which is used to receive the new dock controls. We will move them with script to the desired initial dock zone. 
        <asp:UpdatePanel runat="server" ID="UpdatePanel1"
             <Triggers> 
                  <asp:AsyncPostBackTrigger ControlID="ButtonAddDock" EventName="Click" /> 
             </Triggers> 
         </asp:UpdatePanel> 
    </div> 

    This way when the user interacts with the RadDock control only the content of the UpdatePanel is updated by the AJAX request, and the performance of the page is increased.
  2. A0DBA014-7615-489A-9D12-9B5D5BAEEB49
    A0DBA014-7615-489A-9D12-9B5D5BAEEB49 avatar
    205 posts
    Member since:
    Jul 2011

    Posted 04 Nov 2011 Link to this post

    I need this for Radgrid, but i got an error

    Error de servidor en la aplicación '/'.

    No se puede registrar UpdatePanel con el id. 'UpdatePanel1' porque no se registró con ScriptManager. Este problema puede surgir si el control UpdatePanel se quitó del árbol de controles y se volvió a agregar más tarde, lo que no está permitido.
    Nombre del parámetro: updatePanel


  3. 82125995-D467-49DC-88FF-9544CC577B74
    82125995-D467-49DC-88FF-9544CC577B74 avatar
    1359 posts
    Member since:
    Jan 2017

    Posted 09 Nov 2011 Link to this post

    Hello Julieta,

    Please note that this Code Library article demonstrates a RadDock functionality and it is not concerned with the RadGrid control. The reported problem may be caused by nested UpdatePanels, so I would recommend checking this article and trying to set the UpdateMode of the update panels to Conditional. I have found also a forum thread that could help you solve the problem at hand.

    Note that at the current state of affairs I am mostly guessing as to what your setup is. If you are still experiencing difficulties please prepare and send us a sample, runnable project that displays your issue so that we can examine it locally and provide a more to the point answer.

    Kind regards,
    Slav
    the Telerik team
    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 their blog feed now
Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.