remove dockable panel & save

3 posts, 0 answers
  1. Wolfgang
    Wolfgang avatar
    7 posts
    Member since:
    Oct 2007

    Posted 17 Oct 2007 Link to this post

    I have a problem with removing dockable elements from panel, i registred a eventhandler and I call 
    //pan.DockingSite.Remove(pan);
    dckingManager1.PrimarySite.Remove(pan);

    //dockingManager1.RemoveDocument(pan);


    and than I call SaveLayout, but after loading panel is still there, if i however add a new dockable and save it it will persist .
    in examples it is only possible to remove all nodes or add new nodes, so i can not see how (and if this can be implemented)


    what i have to do to remove panel and save layout without thid panel ?
    thanks
    almir
  2. Wolfgang
    Wolfgang avatar
    7 posts
    Member since:
    Oct 2007

    Posted 17 Oct 2007 Link to this post

    Additional info,

    I have this problem ONLY if panels are floating arround, if they are docked-in somewhere it will work just fine.

  3. UI for WinForms is Visual Studio 2017 Ready
  4. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 17 Oct 2007 Link to this post

    Hello Almir kazazic,

    To remove the IDockable window regardless of the current DockSite (container / floating) you must use the DockingManager Remove function:

    dockingManager1.Remove(pan); 

    If this window is not used after the call to Remove, you can dispose it. The next step is to call SaveLayout.

    I hope this was helpful. Feel free to contact us if you have additional questions.

    Kind regards,
    Julian Benkov
    the Telerik team

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