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

Set width of RadPanelBar in a RadPane when a scrollbar appears

1 Answer 138 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Brian Kowald
Top achievements
Rank 1
Brian Kowald asked on 28 Aug 2009, 11:12 PM
Hi. Is there a way to get a RadPanelBar to resize its width when the RadPane that its in shows a vertical scroll bar? Its always sized to the width of the RadPanel that its in, but if a scrollbar is showing, it covers up the right hand side exspand / collape arrow. Yes, I know you can click anyhere on the main RadPanelItem, but it would look better if its sized properly.
   
How would I accomplish this in java script? Can I detect when a RadPane has a scrollbar showing and what the width of that scrollbar is? Is it possible to even set the width of a RadPanelBar on the client side? I get a error when I call set_width() on its client side object,
Thanks,
Brian

1 Answer, 1 is accepted

Sort by
0
Mr. Plinko
Top achievements
Rank 1
answered on 01 Sep 2009, 03:38 PM
My experience is that scrollbars are usually 20px wide.

When you are saying RadPane, are you referring to a pane in a RadSplitter?

This link discusses resizing a PanelBar, which might help you approach your Javascript solution

http://www.telerik.com/help/aspnet-ajax/resize_panelbars_width_to_the_width_of_the_widest_radpanelitem.html

helpful?
Tags
PanelBar
Asked by
Brian Kowald
Top achievements
Rank 1
Answers by
Mr. Plinko
Top achievements
Rank 1
Share this question
or