Saving State of Dynamically Created RadDocks in DataBase using Hidden UpdatePanel

3 posts, 0 answers
  1. Telerik Admin
    Telerik Admin avatar
    1679 posts
    Member since:
    Oct 2004

    Posted 03 Dec 2009 Link to this post


    RadControls version

    Telerik.Web.UI 2009.3.1103.0+
    .NET version

    NET 2.x/3.x
    Visual Studio version

    programming language

    C# and VB
    browser support

    all browsers supported by RadControls

    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"
                  <asp:AsyncPostBackTrigger ControlID="ButtonAddDock" EventName="Click" /> 

    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. July
    July 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. Slav
    Slav avatar
    1351 posts

    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,
    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