Blazor | ComponentOne
Controls / Input Controls / NumericBox / Formatting
In This Topic
    Formatting
    In This Topic

    You can set a particular format of the numeric value to be entered in the Numeric Box using Format property of the C1NumericBox class. The image below shows the comma separated input format with two decimal places.

    NumericBox control with specified format

    The following code example demonstrates how you can set a specific format for the numeric value in entered or displayed in the NumericBox control.

    Razor
    Copy Code
    <label>Format</label>
    <div>
        <C1NumericBox Format="##,###.##" Placeholder="Any Text" Style="@_c1Style" TNumeric="double?" Value="999999.99"></C1NumericBox>
    </div>