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

[Solved] Different width for combox and header+item template

1 Answer 165 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Khanh
Top achievements
Rank 1
Khanh asked on 25 Jun 2008, 03:41 PM
Is it possible to have the width the combobox be 50px and the dropdown header and item template be 500px?

I'm only accepting 2 digit number for the combobox.  But if the user don't know the value I want them to be able to click the dropdown and see 5 fields pertaining to each value (e.g. value, description, lakes, location, etc.) using the header and item template to display.

Thanks,
Khanh

1 Answer, 1 is accepted

Sort by
0
Khanh
Top achievements
Rank 1
answered on 25 Jun 2008, 05:03 PM
Never mind.  I found the solution in your demo.  In case someone else is curious:

<telerik:RadComboBox ID="SampSite" runat="server" MarkFirstMatch="false" Height="150px"

                    Width="50px" AutoPostBack="true" OnItemsRequested="SampSite_ItemsRequested" DropDownWidth="300px"

                    EnableLoadOnDemand="false" AllowCustomText="true" ShowMoreResultsBox="False"

                    HighlightTemplatedItems="true" DataTextField="Site" DataValueField="site">

                    <HeaderTemplate>

                        <table style="width: 300px" cellspacing="0" cellpadding="0">


Tags
ComboBox
Asked by
Khanh
Top achievements
Rank 1
Answers by
Khanh
Top achievements
Rank 1
Share this question
or