Set width of RadPanelBar in a RadPane when a scrollbar appears

2 posts, 0 answers
  1. Brian Kowald
    Brian Kowald avatar
    5 posts
    Member since:
    Aug 2009

    Posted 28 Aug 2009 Link to this post

    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

  2. Mr. Plinko
    Mr. Plinko avatar
    56 posts
    Member since:
    Jul 2009

    Posted 01 Sep 2009 Link to this post

    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?
Back to Top