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

Controls Widths

3 Answers 110 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Aytaç Utku TOPAL
Top achievements
Rank 2
Aytaç Utku TOPAL asked on 23 Feb 2009, 11:48 AM
Hello,
I am using Radcombobox and Radtextbox in a web page. I set the same value for widths. But they don't look like they have the same size. Combobox is smaller a few pixels than textbox. I would appreatiate it a lot if you could help me as soon as possible.
Kind Regards,
Aytaç Utku TOPAL

3 Answers, 1 is accepted

Sort by
0
Accepted
Paul
Telerik team
answered on 23 Feb 2009, 01:10 PM
Hi Aytaç,

Indeed, this is a know problem in RadTextBox control which is due to be fixed. Meanwhile you can workaround the issue by setting a smaller width, i.e.

<telerik:RadComboBox ID="RadComboBox1" runat="server" Width="250"
</telerik:RadComboBox> 
<br /> 
<telerik:RadTextBox ID="RadTextBox1" runat="server" Width="247"
</telerik:RadTextBox> 


Kind regards,
Paul
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Aytaç Utku TOPAL
Top achievements
Rank 2
answered on 23 Feb 2009, 03:28 PM
I thought there has to be any better way to do it. So I am sure it will help.
thanks a lot
kind regards.
Aytaç Utku TOPAL
0
Dimo
Telerik team
answered on 31 Mar 2009, 03:32 PM
Hello,

I would like to post a follow-up on this topic - as of Q1 2009 SP1 (due in early April 2009), RadInput controls will have a property called EnableOldBoxModel, which will determine the behavior of the textbox with regard to its width:

+ If EnableOldBoxModel="True", the textboxes will be as wide as specified, no matter what their side borders or paddings are.

+ If EnableOldBoxModel="False", the textboxes will generally be wider than specified, because their side paddings and borders will add up to the specified width.

The default value will be false, in order to ensure backwards compatibility.

Please note that this property has effect only for RadInput controls, which have no labels or buttons enabled. If labels or buttons are enabled, the RadInput textboxes have a different rendering and their width is always equal to the value specified.


The name of the property comes from the old Internet Explorer versions' behavior, which contradicted the box model described in the CSS standards.

Kind regards,
Dimo
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Aytaç Utku TOPAL
Top achievements
Rank 2
Answers by
Paul
Telerik team
Aytaç Utku TOPAL
Top achievements
Rank 2
Dimo
Telerik team
Share this question
or