Blazor | ComponentOne
Controls / Input Controls / NumericBox / Formatting
In This Topic
    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.

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