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

RADCombobox cannot set width.

4 Answers 364 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sucheta Patil
Top achievements
Rank 1
Sucheta Patil asked on 06 Jul 2010, 02:51 PM
<telerik:RadMultiPage ID="RadMultiPage1" runat="server">  
            <telerik:RadPageView ID="RadPageViewIntro" runat="server" Selected="true">  
              
<li><asp:Label ID="Label1" runat="server" Text="Due at(time) hours:" AssociatedControlID="lsthh"></asp:Label>  
           <telerik:RadComboBox ID="lsthh" runat="server" AppendDataBoundItems="True"   
                AutoPostBack="True" CausesValidation="False" 
                OnSelectedIndexChanged="lsthh_SelectedIndexChanged" Width="50px"   
                   MaxLength="50">  
                <Items><telerik:RadComboBoxItem Text="Choose One..." Value="0" Selected="True" />  
                <telerik:RadComboBoxItem runat="server" Text="to be allocated" Value="1" /><telerik:RadComboBoxItem runat="server" Text="shared" Value="2" /></Items></telerik:RadComboBox>  
                <asp:RequiredFieldValidator ID="RFV_lsthh" runat="server" ValidationGroup="Visitor" InitialValue="Choose One..." ControlToValidate="lsthh" ErrorMessage="Please enter time in hours of visit">*</asp:RequiredFieldValidator>  
            &nbsp;&nbsp<b>:</b>&nbsp;&nbsp;  
                <telerik:RadComboBox ID="lstmm" runat="server" AppendDataBoundItems="True"   
                AutoPostBack="True" CausesValidation="False"   
                OnSelectedIndexChanged="lstmm_SelectedIndexChanged" Width="50px">  
                <Items><telerik:RadComboBoxItem Text="Choose One..." Value="0" Selected="True" />  
                <telerik:RadComboBoxItem runat="server" Text="to be allocated" Value="1" /><telerik:RadComboBoxItem runat="server" Text="shared" Value="2" /></Items></telerik:RadComboBox>  
                <asp:RequiredFieldValidator ID="RFV_lstmm" runat="server" ValidationGroup="Visitor" InitialValue="Choose One..." ControlToValidate="lstmm" ErrorMessage="Please enter time in minutes of visit">*</asp:RequiredFieldValidator></li>                  
            </li>     
              
                    <li><asp:ValidationSummary ID="validationSummary1" runat="server" ValidationGroup="Visitor" />  
                    <asp:Button ID="bnVistors" runat="server" CausesValidation="true" OnClick="bnVisitors_Click" 
            Text="Next" ValidationGroup="Vistor" /></li></ol></telerik:RadPageView>       
The RadComboBox width does not work.I do not want dropdownwidth. I want to change the width.
I have set the width to 50px but it doesnt work.
I tried Radcombobox width property outside <asp:content> and it works fine but not within <asp:content>.

Also I want
hh:mm
dropdownlist side to each other. But I cant get it in <li> tag.#
Any help is appreciated.

4 Answers, 1 is accepted

Sort by
0
Sucheta Patil
Top achievements
Rank 1
answered on 06 Jul 2010, 03:46 PM
hi
checked few other posts that say width property for RADComboBox doesnt work in container.
I have telerik version Q3 2009.Is it fixed for later version?
0
Kalina
Telerik team
answered on 09 Jul 2010, 11:57 AM
Hi Sucheta Patil,

I created a sample test page and tried to reproduce the issue but without success.

On my side the width of RadComboBox controls is 50px. as expected - I tested this with our latest version and with version 2009.3.1103.20. The width of dropdown lists is 50px. too – by design if the DropDownWidth property is not set, the dropdown takes the width of the RadComboBox.

Could you please explain in more details - what is the behaviour that you are trying
to achieve?  What do you mean by: "Also I want hh:mm dropdownlist side to each other"?
Thank you in advance.

Greetings,
Kalina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Sucheta Patil
Top achievements
Rank 1
answered on 09 Jul 2010, 12:35 PM
Hi Kalina,
I want hh:mm dropdownlist side to each other
Means
lsthh:lstmm

After i run I should be able to enter hours and minutes in the form.
Right now they are below each other but I want to reduce the width of the combobox to fit it on the form
Can you suggest.
Thanks in advance..
Sucheta
0
Kalina
Telerik team
answered on 15 Jul 2010, 08:14 AM
Hello Sucheta Patil,

In order to decrease the space that RadComboBox controls take, you can set the Width property to lower value(for example 35px).
Additionally you can move the RequiredFieldValidator control out of the unordered list that you have placed in RadPageView. The RequiredFieldValidator control renders a hidden “<span>” tag that adds an extra space between RadComboBoxes.

Please find more details at the sample page attached.

All the best,
Kalina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Sucheta Patil
Top achievements
Rank 1
Answers by
Sucheta Patil
Top achievements
Rank 1
Kalina
Telerik team
Share this question
or