Text box for integer properties is way too small


Properties of type integer will get a 25px wide input box in edit mode:

<input name="looong$name" type="text" value="90210" maxlength="255" class="episize25">

Is there a way to make it bigger, so my whole integer will fit?


Jul 10, 2012 16:10

If you want to replace all PropertyNumber controls with a larger text box - you could create your own rendering control like this:

public class MyPropertyNumberControl : EPiServer.Web.PropertyControls.PropertyTextBoxControlBase
    public override void ApplyControlAttributes(System.Web.UI.WebControls.WebControl control)
        control.SkinID = "Size100";


And register by either initalization module, global asax or web.config. All described here:






Edited, Jul 10, 2012 18:47
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.