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
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 04 Jun 2012 Link to this post

    Hello,

    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%">
                <Items>
                    <telerik:RadListBoxItem Text="Text1" />
                </Items>
            </telerik:RadListBox>
        </div>

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

    Regards,
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top