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

how to set radlistbox hight 100%

1 Answer 151 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
JJ
Top achievements
Rank 1
JJ asked on 31 May 2012, 11:21 AM
i tried to set radlistbox hight 100% instead of fixed hight doesn't work. How to set radlistbox hight 100%?

1 Answer, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 04 Jun 2012, 07:50 AM
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.
Tags
ListBox
Asked by
JJ
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Share this question
or