how to set radlistbox hight 100%

2 posts, 0 answers
  1. JJ
    JJ avatar
    147 posts
    Member since:
    May 2010

    Posted 31 May 2012 Link to this post

    i tried to set radlistbox hight 100% instead of fixed hight doesn't work. How to set radlistbox hight 100%?
  2. Genady Sergeev
    Genady Sergeev avatar
    1600 posts

    Posted 04 Jun 2012 Link to this post


    Setting height to 100% works, it is just that the document height by default is zero pixels. You need to set explicit height to the RadListBox container so that it grow to 100% of it. Example code:

    <div style="height: 500px">
            <telerik:RadListBox runat="server" ID="foo" Height="100%">
                    <telerik:RadListBoxItem Text="Text1" />

    This markup will result in a listbox having height of 500 pixels.

    Genady Sergeev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top