Skip Navigation LinksHome / Community & Support / Code Library / ASP.NET and ASP.NET AJAX > Dock > Saving State of Dynamically Created RadDocks in DataBase using Hidden UpdatePanel

Not answered Saving State of Dynamically Created RadDocks in DataBase using Hidden UpdatePanel

Feed from this thread
  • Posted on Dec 3, 2009 (permalink)

    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.

    Reply

  • Posted on Nov 4, 2011 (permalink)

    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


    Reply

  • Slav Slav admin's avatar

    Posted on Nov 9, 2011 (permalink)

    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

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Code Library / ASP.NET and ASP.NET AJAX > Dock > Saving State of Dynamically Created RadDocks in DataBase using Hidden UpdatePanel