This question is locked. New answers and comments are not allowed.
How do i set the width of a Numeric Text Box. I tried using HtmlAttributes, -style, width as below
However, this only sets the width of the contained text box, and not the container with spinners. I have been able to set the width at runtime by using jquery, as below
$("#itbUseAssumptionsIfDataOlderThan").width(20);
However, setting the width should hardly be the reason i should bind an event handler and use jquery. Is there an easier way?
<%=Html.Telerik().IntegerTextBox() .Name("itbUseAssumptionsIfDataOlderThan") .MinValue(0) .HtmlAttributes(new { style = "width: 20px" }) .MaxValue(60)%>However, this only sets the width of the contained text box, and not the container with spinners. I have been able to set the width at runtime by using jquery, as below
$("#itbUseAssumptionsIfDataOlderThan").width(20);
However, setting the width should hardly be the reason i should bind an event handler and use jquery. Is there an easier way?