I am trying to increase the number of decimal places that I can type into a cell using the in-cell editor on my TelerikGrid. It defaults to 2. When I try to use an EditorTemplate to pass a TelerikNumericTextBox component with 4 decimal places defined, it doesn't work. Not sure what I'm doing wrong...
See the code snippet below and the example png of what is generated.
<TelerikGrid Data=@SetupData EditMode="@GridEditMode.Incell" Pageable="true" PageSize="15" Height="500px"
OnUpdate="@UpdateHandler" OnEdit="@EditHandler" OnDelete="@DeleteHandler" OnCreate="@CreateHandler" OnCancel="@OnCancelHandler" ConfirmDelete AutoGenerateColumns Sortable FilterMenuType="FilterMenuType.Menu">
<GridToolBarTemplate>
<GridCommandButton Command="Add" Icon="@SvgIcon.Plus">Add Setup</GridCommandButton>
<GridSearchBox />
</GridToolBarTemplate>
<GridColumns>
<GridAutoGeneratedColumns ColumnWidth="100px"></GridAutoGeneratedColumns>
<GridColumn Field="@nameof(WelderSetupsModel.MinHeadGauge)">
<EditorTemplate>
@{
if(true)
{
var ctx = context as WelderSetupsModel;
<TelerikNumericTextBox @bind-Value="@ctx.MinHeadGauge" Decimals="4" />
}
}
</EditorTemplate>
</GridColumn>
<GridCommandColumn>
<GridCommandButton Command="Delete" Icon="@SvgIcon.Trash"></GridCommandButton>
</GridCommandColumn>
</GridColumns>
</TelerikGrid>