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

resize problem by autoscroll

1 Answer 124 Views
SplitContainer
This is a migrated thread and some comments may be shown as answers.
Bertalan
Top achievements
Rank 1
Bertalan asked on 22 Jul 2011, 08:38 AM

Hello,

I have a problem with the RadSplitContainer. I would like to place more sizable panels in the RadSplitContainer.

If the AutoScroll of RadSplitContainer is true and I scroll the container a little, don’t work the resizes of the panels.

How can I resize the panels after scroll?

Is it a bug in the RadSplitContainer? If yes, is there a workaround to this?

Below is the sample code

Thanks


public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();
 
        RadSplitContainer radSplitContainer1 = new RadSplitContainer()
        {
            Dock = DockStyle.Fill,
            AutoScroll = true
        };
 
        this.Controls.Add(radSplitContainer1);
 
        for (int i = 0; i < 10; i++)
        {
            var panel = new SplitPanel();
            panel.SizeInfo.SizeMode = SplitPanelSizeMode.Absolute;
            panel.SizeInfo.AbsoluteSize = new Size(100, 0);
            radSplitContainer1.SplitPanels.Add(panel);
        }
    }
}

1 Answer, 1 is accepted

Sort by
0
Accepted
Julian Benkov
Telerik team
answered on 27 Jul 2011, 09:47 AM
Hello Bertalan,

There is an issue with the splitter calculation after a scroll operation in RadSplitContainer is performed. I logged the issue in our Public Issue Tracking System. This issue will be addressed in one of our next releases.

Thank you for the report and for the code snippet. Your Telerik points have been updated.

Kind regards,
Julian Benkov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
SplitContainer
Asked by
Bertalan
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or