Problem with auto scroll

3 posts, 0 answers
  1. jean michel
    jean michel avatar
    36 posts
    Member since:
    Aug 2012

    Posted 30 Jul 2012 Link to this post

    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. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 02 Aug 2012 Link to this post

    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 >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. jean michel
    jean michel avatar
    36 posts
    Member since:
    Aug 2012

    Posted 02 Aug 2012 Link to this post

    Hello Julian,

    That is great for this moment

    Thanks a lot one more time.
Back to Top