Is it possible to create Docks in event different from page.init

4 posts, 0 answers
  1. dmitri
    dmitri avatar
    10 posts
    Member since:
    Dec 2006

    Posted 16 May 2008 Link to this post

    Hi,
    I have tree of radtree and 2 panels that display node properties. The first panel displays editable node properties as form. Another one displays it's content using raddocks (prometheus). I need to display dynamic created docks and those docs deppends upon the tree node clicked. But due to documentation the raddocks needs to be created with page.init event and in my case it's need to be created on nodeclick event. How can an I figure it out?

    Regards
  2. Sophy
    Admin
    Sophy avatar
    636 posts

    Posted 17 May 2008 Link to this post

    Hi Dmitri,

    We recommend creating the dynamic RadDock controls at the Init event of the page in order to allow the RadDockLayout to automatically manage their positions. However, you can create RadDock controls in other events as well but you should recreate them in Init when the next postback or AJAX request occurs. I suggest you take a look at the Dynamically Created Docks online example which demonstrates how to dynamically create docks at button click event and recreate them from state at page Init.

    If you need further assistance, do contact us again.

    All the best,
    Sophy
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. dmitri
    dmitri avatar
    10 posts
    Member since:
    Dec 2006

    Posted 19 May 2008 Link to this post

    Hi, Sophy
    Thanks for you answer but I have different logic of saving controls position to database. I'm using prometheus docking control as well as ajax. But I when create docking objects nodeclick event the zone are displayed empty. May be only latest ASP .NET controls for Ajax allows such functionality?
    Regards
    Dmitri
  4. Sophy
    Admin
    Sophy avatar
    636 posts

    Posted 19 May 2008 Link to this post

    Hello Dmitri,

    For your convenience we prepared a sample page based on the Dynamically Created Docks online example but the docks are created at treeview node click instead of at button click. In case the attached page cannot help you achieve the desired scenario, please, open a support ticket and send us a simple running application which demonstrates your scenario and what is the problem you experience so that we can take a closer look at your code and get a better idea of the issue. We will be glad to help you.

    Best wishes,
    Sophy
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top