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

Styling RadNumericTextBox

1 Answer 184 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
Kurt Kluth
Top achievements
Rank 1
Kurt Kluth asked on 06 Apr 2016, 07:50 PM

Is it possible to format a RadNumericTextbox like the attached image?  Setting BoardStyle="None" achieves part of what I am looking for but I need it at least on the bottom or possibly have it masked so it appears like the image.

We have several forms so I would like to set it in one spot in order to affect all the input boxes.

Any suggestions?

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 07 Apr 2016, 10:34 AM
Hello Kurt,

In order to emulate the behavior from the screenshot you can remove the borders for the RadNumericTextBox and set the EmptyMessage property for it.

Also note that the CssClass property is defined for the control. This is in order to specify to what input controls the custom style will be applies. Without this the border of all RadInput controls will be removed.

Markup:


<telerik:RadNumericTextBox ID="RadNumericTextBox1" runat="server" EmptyMessage="$" Type="Currency" CssClass="customNumericStyle"></telerik:RadNumericTextBox>

html body .RadInput input.riTextBox.customNumericStyle,
html body .RadInput input.riTextBox.customNumericStyle + .riHover {
    border-left: none;
    border-right: none;
    border-top: none;
}



Regards,
Viktor Tachev
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
NumericTextBox
Asked by
Kurt Kluth
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or