
Thanks
:)
jr
14 Answers, 1 is accepted
In order to achieve your requirement, it is enough to set the SizeMode to Absolute:
this
.splitPanel1.SizeInfo.SizeMode = Telerik.WinControls.UI.Docking.SplitPanelSizeMode.Absolute;
You can review an example of such behavior in our Examples application, section SplitContainer >> FirstLook.
I hope this helps. If you have additional questions, feel free to contact me.
All the best,
Nikolay
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

Thanks
:)
jr
In order to prevent a panel from resizing, you should fix the splitters that are responsible for the resizing operation. This is demonstrated in the Split Container >> First Look sample as well. Basically, you need to set Fixed property of the desired SplitterElement to true:
this
.radSplitContainer1.Splitters[0].Fixed =
true
;
All the best,
Nikolaythe Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

Thanks for the reply.
:)
jr
Currently, Splitters cannot be accessed at design-time. We will improve this behavior in one of our next releases. For the time being, please set the Fixed property in code.
Sincerely yours,
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

Yes, that could be accomplished pretty much easily. The observed behavior is actually an issue and it is logged here: https://feedback.telerik.com/Project/154/Feedback/Details/219855-fix-radsplitcontainer-the-layout-element-holding-the-resizing-grip-and-splitte.
You can refer to the feedback item for the suggested workaround. The issue is already in development and it will be included in our R3 2017 release. I have updated your Telerik points for the report.
I hope this helps. Please let me know if you need further assistance.
Regards,
Hristo
Progress Telerik

Thanks for that. I can't access that link though. 'The page you're looking for isn't here.'
If the page is protected, can the workaround be posted here?
Indeed there was an issue with the link and the feedback portal, now it should work and you can check the item here.
Just in case, I am also posting the workaround:
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;
}
}
}
}
I hope this helps. Please let me know if you need further assistance.
Regards,
Hristo
Progress Telerik


Hi, I'm trying to fix the width of a panel and also enable collapse and restore functionality. I can get one or the other but not both. This is what i tried:
Me.SplitPanel1.SizeInfo.SizeMode = Telerik.WinControls.UI.Docking.SplitPanelSizeMode.Absolute
Me.SplitPanel1.SizeInfo.AbsoluteSize = New Size(237, 0)
RadSplitContainer1.Splitters(0).Fixed = True
RadSplitContainer1.Splitters(0).Layout.Visibility = ElementVisibility.Collapsed
but not seeing the collapse button.
Thanks,
John
The Fixed property forces the buttons to collapse. If you want to use them you will need to set up the control similarly to my code snippet below:
this
.radSplitContainer1.EnableCollapsing =
true
;
this
.radSplitContainer1.UseSplitterButtons =
true
;
this
.radSplitContainer1.SizeInfo.SizeMode = Telerik.WinControls.UI.Docking.SplitPanelSizeMode.Absolute;
this
.radSplitContainer1.SizeInfo.AbsoluteSize =
new
Size(237, 0);
Additional information is also available here: https://docs.telerik.com/devtools/winforms/splitcontainer/splitter-buttons.
Regards,
Hristo
Progress Telerik
.jpg)
Thank you for sharing your thoughts in this thread. Indeed a similar result could be achieved following the approach you suggested. I am sure that this will of help to the community.
Regards,
Hristo
Progress Telerik