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

Problem with auto scroll

2 Answers 127 Views
SplitContainer
This is a migrated thread and some comments may be shown as answers.
jean michel
Top achievements
Rank 1
jean michel asked on 30 Jul 2012, 05:57 PM

Hello,

I have three splitpanel and when the auto scroll is enabled some lines appear in the splitpanel.

Following attached the picture.

Thank you for all.

2 Answers, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 02 Aug 2012, 09:36 AM
Hello Jean,

I logged the issue in our Public Issue Tracking System. The fix will be available in one of the next releases. Currently, you can Invalidate the SplitPanel using the Scroll event to workaround the issue. Here is a code snippet example:
using System.Windows.Forms;
using Telerik.WinControls.UI;
 
namespace Lab.Dock
{
    public partial class SplitContainerFixedPanel : Form
    {
        private RadSplitContainer splitContainer = new RadSplitContainer();
 
        public SplitContainerFixedPanel()
        {
            InitializeComponent();
 
            splitContainer.Dock = DockStyle.Fill;
            splitContainer.Parent = this;
            splitContainer.BringToFront();
 
            SplitPanel panel1 = new SplitPanel();
            RadAutoCompleteBox autoCompleteBox = new RadAutoCompleteBox();
            autoCompleteBox.Location = new System.Drawing.Point(10, 10);
            autoCompleteBox.Size = new System.Drawing.Size(1000, 300);
            autoCompleteBox.Parent = panel1;
            autoCompleteBox.Text = "Split Panel 1";
            panel1.SizeInfo.SizeMode = Telerik.WinControls.UI.Docking.SplitPanelSizeMode.Absolute;
            panel1.SizeInfo.AbsoluteSize = new System.Drawing.Size(200, 200);
            panel1.AutoScroll = true;
            panel1.Scroll += panel1_Scroll;
 
            SplitPanel panel2 = new SplitPanel();
            autoCompleteBox = new RadAutoCompleteBox();
            autoCompleteBox.Dock = DockStyle.Fill;
            autoCompleteBox.Parent = panel2;
            autoCompleteBox.Text = "Split Panel 2";
 
            splitContainer.Orientation = Orientation.Horizontal;
            splitContainer.SplitPanels.Add(panel1);
            splitContainer.SplitPanels.Add(panel2);
        }
 
        void panel1_Scroll(object sender, ScrollEventArgs e)
        {
            SplitPanel splitPanel = sender as SplitPanel;
            if (splitPanel != null)
            {
                splitPanel.Invalidate();
            }
        }
    }
}

I hope this helps.

Thank you for your time and cooperation. Your Telerik points have been updated. 

Greetings,
Julian Benkov
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
0
jean michel
Top achievements
Rank 1
answered on 02 Aug 2012, 03:12 PM
Hello Julian,

That is great for this moment

Thanks a lot one more time.
Tags
SplitContainer
Asked by
jean michel
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
jean michel
Top achievements
Rank 1
Share this question
or