I have RadSplitContainer with two panels one above another. I need to hide the upper panel when user changes state of a toggle button to "off" and show that panel, when toggle state is changed to "on". The lower panel and it's contents must occupy the whole SplitContainer's surface when the upper one is hidden. I tried the following:
sp.SizeInfo.SizeMode = Telerik.WinControls.UI.Docking.SplitPanelSizeMode.Absolute;
sp.SizeInfo.AbsoluteSize = new Size(0, 0);
But it doesn't work at all. When I change height to "1":
sp.SizeInfo.AbsoluteSize = new Size(0, 1);
it works fine, but little nasty 1px width strip is visible. In design-time I can change splitter position so that AbsoluteSize.Width is 0. Also I can change panels height to 0 at runtime manually. Is there any way to do it programmatically?