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

RadPanelBar and Scrolling

4 Answers 161 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Barry
Top achievements
Rank 1
Barry asked on 02 May 2012, 08:32 PM
I'm having an issue using the panelbar with the way that is utilizes the scroll viewer... when there is not enough room for the contents of a panel in the panelbar it puts a vertical scrollviewer on the control - which is desired - but it puts the scroll bar on the entire control and not just the panel that is causing the height to be too great. This doesn't make any sense.

As you can see in my attachment, this causes the horizontal scroll bar to appear as well - NOT desirable - and part of the vertical scroll bar covers part of the header of the panel that is open. It also pushes any other panel headers down to where you can't even see them - you have to close the panel that is open to even know that they are there.

This can't be by design, can it?  What in the world would you want a control to do this for?

I would like a scroll bar on the panel that doesn't have enough room, not the whole control. Is there any way to do this? I need to have the ability to collapse the panels as well as show all the content in each one and not have any of the headers become not visible.

4 Answers, 1 is accepted

Sort by
0
Accepted
Tina Stancheva
Telerik team
answered on 07 May 2012, 11:43 AM
Hello Barry,

Thank you for writing to us and sending your feedback on the RadPanelBar implementation. The ScrollViewer placement at the RadPanelBar was indeed a design decision which we revised again based on your feedback. As we can see your point on the matter, we will do our best to move the ScrollViewer to the top level RadPanelBarItem's ControlTemplate for the Q2 2012 release. You can track its progress here.

In the meantime you can edit the ControlTemplates of the RadPanelBar and the top-level RadPanelBarItems in order to set a ScrollViewer inside each top-level item and remove it from the PanelBar template structure. I attached a sample project to get you started. Please have a look at it and let me know if it helps.

Regards,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Daniel
Top achievements
Rank 1
answered on 10 Jul 2013, 03:40 PM
I'm try to acomplish this with a RadGridView as the RadPanelBarItem content.
I have the same trouble, scroll bars are displayed at top level(RadPanelBar) instead of second level (RadGridView)
Please help me with this, how do I replace the stack panel for a gridview.
0
Barry
Top achievements
Rank 1
answered on 10 Jul 2013, 03:55 PM
As you can see from my attachment, I was able to resolve my issue with the answer that was provided by the Telerik support staff.

Your issue seems a little different. I never needed a separate scrollbar inside the panel to work, I just need the scrollbar that is already built in to the control to be inside the panel. I got one in there but is it a little off from the header, but that's okay for now.

You may want to post a new topic for this as your issue is different from mine and this thread is old and marked answered.
0
Daniel
Top achievements
Rank 1
answered on 10 Jul 2013, 04:23 PM
Hi, I solved my trouble disabling the RadPanelBar scroll bars
<FONT color="#ff0000" size="1" face="Consolas"><FONT color="#ff0000" size="1"
face="Consolas"><FONT color="#ff0000" size="1"
face="Consolas">ScrollViewer.VerticalScrollBarVisibility</FONT></FONT></FONT><FONT
size="1">="Disabled" ScrollViewer.HorizontalScrollBarVisibility="Disabled"
<BR></FONT>

I think this forces the gridview to display its own scroll bars
Thanx anyway.
Tags
PanelBar
Asked by
Barry
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Daniel
Top achievements
Rank 1
Barry
Top achievements
Rank 1
Share this question
or