Hi Anas,
We have analyzed your query (how to customize the style of Numeric textbox for border color when the control get focus). We can achieve your requirement, using the “CssClass” property. It will set the root CSS class for textboxes which allow us to customize the appearance. The ‘e-focus’ class will be added while focusing the textbox, and by identifying that you can change the appearance. Please refer to the below code example.
[CSHTML]
@Html.EJ().NumericTextbox("numeric").Value("1000").CssClass("customCss")
<style>
.customCss.e-numeric.e-focus .e-box {
border-color: #008000;
}
</style> |
To know more details about NumericTextbox, please refer the following documentation link.
For your reference, we have prepared a sample based on your requirement and it can be available in following location.
Regards,
Kaviyarasu S