Custom Control Width from CSS not working

2 posts, 0 answers
  1. Vargis
    Vargis avatar
    44 posts
    Member since:
    Jan 2013

    Posted 18 Mar 2013 Link to this post

    In normal ASP textbox width in percentage from css is working and also we can only an input is rendering. But when we use Telerik Custom control we can see a span is renderin first then inside that span textbox is rendering. So that this span automatically setting 160px width so if we put width:50% the text box will take 50% of this Span ie 80px.

    But in other case it will calculate the td width and set the 50% of that td width.
  2. Galin
    Galin avatar
    526 posts

    Posted 21 Mar 2013 Link to this post

    Hello Vargis,

    You can use the property WrapperCssClass, which will apply the CSS class on the span element and controlling this way its width.

    I hope this helps.

    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