AutoScroll in SplitPanel not working?

12 posts, 0 answers
  1. Ondřej
    Ondřej avatar
    3 posts
    Member since:
    Jul 2013

    Posted 10 Jul 2013 Link to this post

    Hi, when I set AutoScroll of a SplitPanel to true, no scrollbars appear when I resize the window to smaller size. When I set AutoScroll of the whole SplitContainer to true, the scrollbars show up but the not visible part of container is not displayed and sometimes a lot of black lines appear in this part instead. The SplitContainer is placed in a page displayed in RadPageView in a RadForm. What can be the problem?
  2. George
    Admin
    George avatar
    500 posts

    Posted 11 Jul 2013 Link to this post

    Hello Ondřej,

    Thank you for writing.

    To show scrollbars when you resize the window the splitcontainer and the panels inside must be docked. Being docked they will change their size whenever their parent changes their size. This means that the RadPageView should be docked.

    About your concern related to the black lines - you should subscribe to the Scroll event of the split panel and call the Invalidate method of that panel.
    private void splitPanel_Scroll(object sender, ScrollEventArgs e)
    {
        (sender as SplitPanel).Invalidate();
    }

    You can use this method for other panels too.

    I hope this helps.
     
    Regards,
    George
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Ondřej
    Ondřej avatar
    3 posts
    Member since:
    Jul 2013

    Posted 11 Jul 2013 Link to this post

    All the controls are docked, set to fill and still no scrollbars. Might the reason be that there is a Groupbox in the SplitPanel so it is the Groupbox border that hits the content first and not the SplitPanel border?
  5. George
    Admin
    George avatar
    500 posts

    Posted 16 Jul 2013 Link to this post

    Hi Ondřej,

    Thank you for writing back.

    I did some testing and it seems that the groupbox is causing this behavior. Would you try to remove the groupbox let me know of the result. Additionally I am attaching my project which I used for my test.

    I hope this helps.

    Regards,
    George
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  6. Ondřej
    Ondřej avatar
    3 posts
    Member since:
    Jul 2013

    Posted 16 Jul 2013 Link to this post

    Yes, it was the groupbox, my bad. But when I set the auto scroll for whole SplitContainer, this still happens (I dont need this functionality, I´m just informing you) - screenshot attached.

     
  7. George
    Admin
    George avatar
    500 posts

    Posted 17 Jul 2013 Link to this post

    Hi Ondřej,

    Thank you for replying.

    I am glad you resolved your issue. Concerning the auto scroll issue I would like to ask you if you tried to subscribe to the scroll event of the panels and call the Invalidate method, this should solve the described behavior.

    Should you have any other questions, do not hesitate to ask.
     
    Regards,
    George
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  8. Marc
    Marc avatar
    15 posts
    Member since:
    Apr 2013

    Posted 16 Aug 2013 Link to this post

    Hi, I have the same problem with black areas in SplitPanels when I resize the form with mouse dragging. I tried calling Invalidate() on all SplitPanels and SplitContainers but it doesnt help. How do I fix this behavior?
  9. George
    Admin
    George avatar
    500 posts

    Posted 21 Aug 2013 Link to this post

    Hi Marc,

    Thank you for writing.

    Can you please give me some additional details about your case since I could only reproduce the behavior when scrolling and Invalidate solved it. A helpful information would be:
    1. What is your application's structure - what items are inside the SplitPanels and what are the RadSplitContainer's parents?
    2. Do you have autoscroll enabled?
    3. When are you calling the Invalidate method?

    Thank your for your time and cooperation. I am looking forward to your response.
     
    Regards,
    George
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  10. Marc
    Marc avatar
    15 posts
    Member since:
    Apr 2013

    Posted 27 Aug 2013 Link to this post

    1) One SplitPanel contains RadGridView, second contains buttons. RadGridViews parent is SplitPanel in another RadGridView in UserControl in RadDock in SplitPanel in another RadGridView

    2) No

    3) When the main Form resizes

    4) This problem probably happens only with the Windows 8 Theme, the same as the last problem I reported with checkboxes
  11. George
    Admin
    George avatar
    500 posts

    Posted 29 Aug 2013 Link to this post

    Hello Marc,

    Thank you for writing.

    I tried to reproduce your case but with no success. I am attaching my test project for you to test by yourself. Please let me know if there is anything that I am doing wrong. If the problem persists please provide me with a sample project reproducing the issue or additional information which may help me further investigate this matter.

    Please find the attached zip file below.
     
    Regards,
    George
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  12. Marc
    Marc avatar
    15 posts
    Member since:
    Apr 2013

    Posted 30 Aug 2013 Link to this post

    I partially reproduced the problem in attached screenshot. If I have the splitpanels like this, black areas appear during resizing but then dissapear. In my project, which is much more complex, they stay.
  13. George
    Admin
    George avatar
    500 posts

    Posted 03 Sep 2013 Link to this post

    Hi Marc,

    Thank you for replying.

    I am still unable to reproduce the described behavior. I would like to propose you to consider opening a support ticket where you can attach your project, this will allow me to further investigate this case.

    Looking forward to your reply.

    Regards,
    George
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top
UI for WinForms is Visual Studio 2017 Ready