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

AutoScroll in SplitPanel not working?

11 Answers 779 Views
SplitContainer
This is a migrated thread and some comments may be shown as answers.
Ondřej
Top achievements
Rank 1
Ondřej asked on 10 Jul 2013, 06:20 PM
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?

11 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 11 Jul 2013, 03:04 PM
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 >>
0
Ondřej
Top achievements
Rank 1
answered on 11 Jul 2013, 04:31 PM
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?
0
George
Telerik team
answered on 16 Jul 2013, 02:14 PM
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 >>
0
Ondřej
Top achievements
Rank 1
answered on 16 Jul 2013, 07:49 PM
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.

 
0
George
Telerik team
answered on 17 Jul 2013, 02:35 PM
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 >>
0
Dk
Top achievements
Rank 1
answered on 16 Aug 2013, 01:00 PM
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?
0
George
Telerik team
answered on 21 Aug 2013, 10:21 AM
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 >>
0
Dk
Top achievements
Rank 1
answered on 27 Aug 2013, 08:59 AM
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
0
George
Telerik team
answered on 29 Aug 2013, 03:06 PM
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 >>
0
Dk
Top achievements
Rank 1
answered on 30 Aug 2013, 08:13 AM
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.
0
George
Telerik team
answered on 03 Sep 2013, 01:49 PM
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 >>
Tags
SplitContainer
Asked by
Ondřej
Top achievements
Rank 1
Answers by
George
Telerik team
Ondřej
Top achievements
Rank 1
Dk
Top achievements
Rank 1
Share this question
or