Text box for integer properties is way too small

Vote:
 

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?

 

#60005
Jul 10, 2012 16:10
Vote:
 

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)
    {
        base.ApplyControlAttributes(control);
        control.SkinID = "Size100";
    }
}

    

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

http://blog.mathiaskunto.com/2012/03/05/being-friends-with-the-propertycontrolclassfactory-or-101-ways-to-change-episerver-built-in-property-appearances/

 

 

 

 

#60009
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.