Skip to content

Infragistics Community Forum / Web / Ignite UI for Angular / Adding a Pane dynamically to a Dock Manager

Adding a Pane dynamically to a Dock Manager

New Discussion
Sruthi Karnam
Sruthi Karnam asked on Dec 24, 2021 3:12 AM

Hi,

Is there a way to add a Pane to the Dockmanager dynamically during run time. There is a Remove Pane function available with the latest Dockmanager version but could not find one for adding a new pane without having to reassign the layout Json.

Sign In to post a reply

Replies

  • 0
    Tihomir Tonev
    Tihomir Tonev answered on Nov 18, 2020 12:20 PM

    Hello Sruthi,

    Please refer to the documentation on our website regarding updating the dockmanager during run time:

    Please note that modifying any of the properties of the layout object will not trigger an update of the Dock Manager. If that is your goal, you should replace the whole layout object like so:

    const layout = this.dockManager.layout;
    layout.rootPane.orientation = IgcSplitPaneOrientation.vertical;
    this.dockManager.layout = { ...layout };

    More info here:

    https://www.infragistics.com/products/ignite-ui-web-components/web-components/components/layouts/dock-manager

    However, you can still add panes to your dockmanager using the above method. Please refer to the following sample:

    https://stackblitz.com/edit/add-new-pane-dockmanager-programatically?file=src%2Fapp%2Fdock-manager-sample%2Fdock-manager.component.ts

    Should you have any further questions, please let me know.

    Sincerely,
    Tihomir Tonev
    Associate Software Developer
    Infragistics

    • 0
      Sruthi Karnam
      Sruthi Karnam answered on Nov 20, 2020 5:02 AM

      This really Helped . Thank you !!

      • 0
        Tihomir Tonev
        Tihomir Tonev answered on Nov 20, 2020 4:16 PM

        Glad to hear this has helped you.

        Thank you for using Infragistics components.

        Tihomir Tonev
        Associate Software Developer
        Infragistics

    • 0
      George Fergadis
      George Fergadis answered on Mar 9, 2021 4:11 PM

      Hello,

      This shows how to add a pane and frankly, I have already come to that point following the layout directions. However, I can't find any reference, how can I add data, component, text, html, anything in that new Pane I created. 

      I find it impossible for that to be the case since, there is no point to be able to create a new Pane without being able to fill it up with content.

      One more thing, I know that this panel can be assigned an html element, that has been created inside the igc-dockmanager element html code. But my task here, is to allow the users click a button and create a new tab with content downloaded from an API.

      Is this something doable? If it is, why is it so difficult to find out how?

      Thank you in advance

    • 0
      pavan kumar
      pavan kumar answered on Dec 23, 2021 9:35 AM

      Thanks for the example.

      stackblitz.com/…/add-new-pane-dockmanager-programatically

      Can provide example for how to add new tab to the stack (Middle layer of the layout next to document 2 tab) 

      • 0
        pavan kumar
        pavan kumar answered on Dec 24, 2021 3:12 AM
  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Sruthi Karnam
Favorites
0
Replies
6
Created On
Dec 24, 2021
Last Post
4 years, 2 months ago

Suggested Discussions

Created by

Created on

Dec 24, 2021 3:12 AM

Last activity on

Feb 23, 2026 5:05 PM