Why does WrapperCssClass work only in EnableSingleInputRendering=true?

5 posts, 1 answers
  1. Andrey
    Andrey avatar
    7 posts
    Member since:
    May 2011

    Posted 12 Dec 2011 Link to this post

    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)?
  2. Andrey
    Andrey avatar
    7 posts
    Member since:
    May 2011

    Posted 15 Dec 2011 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Answer
    Mira
    Admin
    Mira avatar
    1124 posts

    Posted 15 Dec 2011 Link to this post

    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
  5. MFitzpatrick
    MFitzpatrick avatar
    24 posts
    Member since:
    Jul 2010

    Posted 20 Dec 2011 Link to this post

    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
  6. Mira
    Admin
    Mira avatar
    1124 posts

    Posted 21 Dec 2011 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017