This is a migrated thread and some comments may be shown as answers.

Resize on Runtime to fit Content

4 Answers 193 Views
SplitContainer
This is a migrated thread and some comments may be shown as answers.
Dk
Top achievements
Rank 1
Dk asked on 27 Jun 2014, 01:39 PM
Hi,

i have a Problem with RadSplitContainer

I have a SplitContainer with two SplitPanels orientated vertically.

In the upper Panel i want to Add content at Runtime.
In the lower Panel i have a GridView.

I need the upper Panel to fit the content i will add, and the lower Panel to take the available space left.
Did not get it working on my machine for a couple of days.



Thx for support

4 Answers, 1 is accepted

Sort by
0
Dk
Top achievements
Rank 1
answered on 01 Jul 2014, 12:34 PM
Got it working somehow, dont even know how
0
George
Telerik team
answered on 02 Jul 2014, 10:47 AM
Hello Marc,

I am glad that you were able to resolve your problems. 

Should you have questions regarding this matter, do not hesitate to write back. You can also provide sample code if that is required.

Regards,
George
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Hossein
Top achievements
Rank 1
answered on 16 Dec 2014, 05:27 AM
It is my problem,too
Can you explain It?
How I can change splitter width (splittDistance) on runtime?
0
Dimitar
Telerik team
answered on 18 Dec 2014, 02:49 PM
Hello Hossein,

Thank you for writing.

The size of the panel can be changed like this:
private void radButton1_Click(object sender, EventArgs e)
{
    splitPanel1.SizeInfo.SizeMode = Telerik.WinControls.UI.Docking.SplitPanelSizeMode.Absolute;
    splitPanel1.SizeInfo.AbsoluteSize = new Size(150, 150);

More information can be found here: Building a layout of RadSplitContainers programmatically.

The splitter width can be changed by setting the corresponding property:
radSplitContainer1.SplitterWidth = 20;

Please let me know if there is something else I can help you with. 
 
Regards,
Dimitar
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
SplitContainer
Asked by
Dk
Top achievements
Rank 1
Answers by
Dk
Top achievements
Rank 1
George
Telerik team
Hossein
Top achievements
Rank 1
Dimitar
Telerik team
Share this question
or