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

Why does WrapperCssClass work only in EnableSingleInputRendering=true?

4 Answers 107 Views
Input
This is a migrated thread and some comments may be shown as answers.
Andrey
Top achievements
Rank 1
Andrey asked on 12 Dec 2011, 08:06 PM
I can't find any reference in help about this, but it looks like WrapperCssClass is applied only when EnableSingleInputRendering=true.
Could you please clarify if I can apply wrapper class when EnableSingleInputRendering=false (default)?

4 Answers, 1 is accepted

Sort by
0
Andrey
Top achievements
Rank 1
answered on 15 Dec 2011, 09:55 AM
Could somebody just let me know if this is expected behavior or the issue that will be fixed in some release?
I am investigating opportunity to migrate our project to Telerik controls (that requires deep customization) and I need to understand this to plan things properly.
Thank you in advance.
0
Accepted
Mira
Telerik team
answered on 15 Dec 2011, 01:06 PM
Hello Andrey,

The described behaviour is a known issue of the RadInput.
It is fixed in the latest internal build available for download.

However, we recommend the usage of the Single Input Rendering Mode.

I hope this helps.

Regards,
Mira
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
0
MFitzpatrick
Top achievements
Rank 1
answered on 20 Dec 2011, 03:32 PM
Hello-

In response to the solution above:

In Chrome,if I do not set the EnableSingleInputRendering property to true, the width property for all RadTextBoxes and RadDatePickers is ignored. They are all about 140px wide regardless of what I set the width to. I can see in the source code that the text box input style width is set to 100% of its wrapper.

However, when I do set the EnableSingleInputRendering to true, (for all browsers) for all RadTextBoxes that have the Label property set, the label text appears beneath the text box. It seems that the total width of the text box is split between the label and the input. The label gets roughly 40% and the input gets 60%. This is regardless of the text that is in the label.

Is there a solution for this issue? Should I stop using the label property for radtextboxes?

Thanks

Mike
0
Mira
Telerik team
answered on 21 Dec 2011, 04:12 PM
Hello Mfitzpatrick,

To your questions:
  1. I tried to replicate the issue you described with the following code but to no avail:
    <telerik:RadDatePicker ID="RadDatePicker1" Width="300px" runat="server">
    </telerik:RadDatePicker>
    <telerik:RadTextBox ID="RadDatePicker2" Width="300px" runat="server">
    </telerik:RadTextBox>
    If the problems persist, please provide detailed steps for reproducing them.
  2. When Single Input Rendering is enabled, the default value of the LabelWidth property is 40%. Please set this property to a corresponding value in order to achieve the desired look.

I hope this helps.


All the best,
Mira
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
Input
Asked by
Andrey
Top achievements
Rank 1
Answers by
Andrey
Top achievements
Rank 1
Mira
Telerik team
MFitzpatrick
Top achievements
Rank 1
Share this question
or