How do

2 posts, 0 answers
  1. Sean Cross
    Sean Cross avatar
    37 posts
    Member since:
    Oct 2009

    Posted 29 Nov 2012 Link to this post

    I want to set the  width of a currency text box.  I am using the legacy WebBlue theme.

    I have tried
    <%: Html.Kendo().CurrencyTextBoxFor(x => x.Charged).HtmlAttributes(new { style = "width:100px" }) %>

    but that just cuts off the right hand edge.

    I have tried the approach in
     but that doesn't work either.
  2. Vladimir Iliev
    Vladimir Iliev avatar
    2155 posts

    Posted 03 Dec 2012 Link to this post

    Hi Sean,

    Basically if you are using the Legacy themes you should additionally set the width of the input element using jQuery on document ready. Please check the example below:

    @(Html.Kendo().CurrencyTextBoxFor(m => m.Charged).HtmlAttributes(new { style = "width: 300px"} ))
        $(function () {
    Kind Regards,
    Vladimir Iliev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET AJAX banner
Back to Top