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

Custom Control Width from CSS not working

1 Answer 46 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vargis
Top achievements
Rank 2
Vargis asked on 18 Mar 2013, 10:33 AM
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.

1 Answer, 1 is accepted

Sort by
0
Galin
Telerik team
answered on 21 Mar 2013, 09:44 AM
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.

Regards,
Galin
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
General Discussions
Asked by
Vargis
Top achievements
Rank 2
Answers by
Galin
Telerik team
Share this question
or