Please refer to the attached sample project. Double click the middle splitter in the horizontal split container. Workaround: manually collapse the desired split panel: private void Form1_Load(object sender, EventArgs e) { this.radSplitContainer3.PanelCollapsing += radSplitContainer3_PanelCollapsing; foreach (SplitterElement s in this.radSplitContainer3.Splitters) { s.DoubleClick += s_DoubleClick; } } private void s_DoubleClick(object sender, EventArgs e) { SplitterElement s = sender as SplitterElement; ((SplitPanel)s.RightNode).Collapsed = true; }
Unable to cast object of type 'System.EventArgs' to type 'System.Windows.Forms.MouseEventArgs'. Workaround: use the SpliPanel.Collapsed property to control whether the split panel is expanded or collapsed.
To reproduce: -add RadSplitContainer (horizontal) and add one left and one right split panel -add two RadButtons to collapse and show one of the panels private void radButton1_Click(object sender, EventArgs e) { this.splitPanel1.Collapsed = true; } private void radButton2_Click(object sender, EventArgs e) { this.splitPanel1.Visible = true; } -click the first button to collapse the left panel; as a result the second panel fills the entire container size -click the second button to show again the left panel; as a result the panels overlap each other
I have three split panels and when the auto scroll is enabled some lines appear in the split panel. The issue can be reproduced with RadPanel as well. Workaround: http://www.telerik.com/forums/problem-with-auto-scroll#ygV1vwyA40KZ4KoD28AhvQ
To reproduce: - Set the splitter size to 40. - Drag the splitter without releasing the mouse. - The mouse pointer is in the beginning of the splitter, but it should be in its center.
To reproduce: - Add button to a split panel - Set button Text property to "Button &X" - Add a event handler for the button - Start the application and press the "x" key To work around this issue instead of using mnemonics you can set shortcuts like this: radButton.ButtonElement.Shortcuts.Add(new RadShortcut(Keys.Alt, Keys.X)); Also you can set mnemonic like underline like this: radButton.Text = "<html>Button <u>X";
In design time when trying to copy-paste a RadSplitContainer, which contains a couple panels, it throws exception. Steps to reproduce: Add a RadSplitContainer to a form or user control. Add a couple of panels to the container using the designer. Press Ctrl+A to select all the controls on the form or user control. Press Ctrl+C to copy them to the clipboard. Create a new form or user control (this step isn't strictly necessary, but helps explain the issue). Paste the controls on the clipboard into the new form or user control using Ctrl+V
Applying Settings to the RadSplitContainer >> SplitContainerElement >> SplitterFill element affect only the first Splitter instance in the RadSplitContainer.
When you drop a RadSplitContainer in a RadDock ToolWindow, RadSplitContainer loses important options from its SmartTag's ActionMenu. Similar behavior is obtained when you drag a RadSplitContainer from the ToolBox and drop it onto an empty RadDock.
Let's have a RadSplitContainer on a form. This RadSplitContainer should contain two SplitPanels and one splitter. Change the color of the splitter using the Edit UI Elements dialog. Run the project and you will get IndexOutOfRangeException. However, if you cut and paste the designer code in the form_load, it will work correctly.
When you try to copy and paste RadSplitContainer from one form to another, it loses its child panels and if it contains any other child controls, they become children of the form.
How to reproduce: check the attached project Workaround: check the attached project
To reproduce: splitPanel1.SizeInfo.SizeMode = Telerik.WinControls.UI.Docking.SplitPanelSizeMode.Absolute; splitPanel1.SizeInfo.AbsoluteSize = new Size(300, this.radSplitContainer1.Height); splitPanel1.SizeInfo.MinimumSize = new Size(80, 0); radSplitContainer1.UseSplitterButtons = true; radSplitContainer1.EnableCollapsing = true; - Start the application and collapse the panel with the button. - The panel is collapsed, but cannot be expanded to its previous position.
Hello, I receive 'failed to create component' when designing user control in WinForms Designer. RadControls version - Q3 2014 Visual Studio version - 2013 Community Seems like there was a try to add a reference to already referenced assembly. The image is in attachment
The mouse cursor should not also change to split. How to reproduce: set certain splitter elements to be fixed, then you would notice that they have the resizing image visible and the cursor changes to split if you hover them Workaround: manually hide the layout element and use a custom control overriding its Cursor property public partial class Form1 : Form { public Form1() { InitializeComponent(); new RadControlSpyForm().Show(); this.radSplitContainer1.EnableCollapsing = true; this.radSplitContainer1.UseSplitterButtons = true; } protected override void OnShown(EventArgs e) { base.OnShown(e); foreach (SplitterElement splitter in this.radSplitContainer1.Splitters) { splitter.Fixed = true; splitter.Layout.Visibility = ElementVisibility.Collapsed; } } private void button1_Click(object sender, EventArgs e) { foreach (SplitterElement splitter in this.radSplitContainer1.Splitters) { splitter.Fixed = !splitter.Fixed; splitter.Layout.Visibility = !splitter.Fixed ? ElementVisibility.Visible : ElementVisibility.Collapsed; } } } public class MyRadSplitContainer : RadSplitContainer { public override string ThemeClassName { get { return typeof(RadSplitContainer).FullName; } } public override Cursor Cursor { get { return base.Cursor; } set { SplitterElement splitter = this.GetSplitterElementAtPoint(this.PointToClient(Cursor.Position)); if (!(splitter != null && splitter.Fixed)) { base.Cursor = value; } } } }
Backgroud
The behavior of split button makes me confused when I use split button collapsing the split panel. It locates in different position when I restore the split button by double-click. What's weirder is that double-click will make no effect when the split button located on the edge. I don't like these default behaviours.
Question
1. Do you know how to overwrite the default behaviour of split button?
2. Is there a virtual method or some event I can reimplement?
3. I want to collapse the right panel to the right side, and restore it to the initial location, and just these to behaviours. How can I do it?
Thanks!
Dear Sir/Madam
Unfortunately, the SplitContainer in the .NET version 5 has problems, as you can see in the picture, I can not change the size in design time.
Is there a newer version that fixes this problem?
Telerik Winform Version :2020.3.1020
Visual Studio Version : 16.8.3
Best Regards
this.radSplitContainer2.Cursor = System.Windows.Forms.Cursors.SizeNS;
A project to reproduce is attached
Thanks
To reproduce:
1. Add three SplitPanels in horizontal mode.
2. Use the following code snippet.
3. Drag the second splitter upwards. It changes the height on the first panel
void RadForm1_Load(object sender, EventArgs e)
{
FixHeight(splitPanel1);
FixHeight(splitPanel3);
}
public static void FixHeight(SplitPanel panel)
{
panel.SizeInfo.MinimumSize = new Size(0, 55);
panel.SizeInfo.MaximumSize = new Size(0, 55);
}