Programmatically Collapse Split Container Panels?

Posted by: jpeddy on 10 September 2017, 3:33 am EST

  • Posted 10 September 2017, 3:33 am EST

    Can it be done?


  • Posted 10 September 2017, 3:33 am EST

    Just set C1SplitterPanel.Visible to False. If this is a collapsible panel it will be collapsed instead of being completely hidden.



  • Posted 7 March 2022, 10:49 am EST

    Is there a way to set the collapsed state on a panel when the entire split container is hidden such that it will be collapsed when the split container is made visible again?

  • Posted 7 March 2022, 3:21 pm EST


    You can use the Collapsed property of the C1SplitterPanel to toggle the collapse state of the panels. This property takes effect in both the hidden as well as visible states of the C1SplitContainer.

    Regards, Kartik

  • Posted 16 March 2022, 7:13 am EST

    Thank you for the reply Kartik. It doesn’t seem that what you say is correct. I’ve attached a very simple solution to demonstrate. If what you say were correct, I would expect that when I collapse Tab1/Panel 1 then move to Tab 2, Tab2/Panel 2 would be collapsed. It is not.

    If in fact the Collapsed property delegates directly to the Visible property, as in Collapsed = Not Visible, then I wouldn’t expect the form to work as I would like. Is there a way to have the collapsed state of the split container on tab 2 tied to that of the container on tab 1?

    Thanks again, John

  • Posted 16 March 2022, 11:00 pm EST

    Hi John,

    The sample ( shows the behavior that we suggested in our previous response, but we did not know you are using it with a TabControl. Although, we could see the issue you have mentioned in your sample as well. This seems like an issue while using the C1SplitContainer with the tab control. We have escalated the issue to the development team to get their insights on it. We will let you know as soon as we have an update. In the meantime, as a workaround, you can use the SelectedIndexChanged event of the TabControl to copy the Collapsed value of the Panel1 of Tab1 to Panel2 of Tab2. Kindly refer to the sample ( showing the same.

    [Internal Tracking ID - C1WIN-27009]

    Best Regards, Kartik

  • Posted 17 March 2022, 3:42 am EST

    I can make that work. Thanks. BTW, just in case it matters, in my actual project, I’m using a C1DockingTab. So whatever the issue is with tab controls, it manifests with the C1 tab control as well.


  • Posted 25 April 2023, 7:44 pm EST


    Apologies for the delay in response. As per the development team, unfortunately, in this case Collapsed == !Visible. Therefore, when the second tabcontrol is invisible, the c1splitcontainer’s tabcontrol is always Collapsed. Therefore, it is a limitation of the Control.



Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels