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
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.
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.