How disable valid in RadzenNumeric

Hello, how can i disable valid in RadzenNumeric, input in DataGrid

       <EditTemplate Context="schedule">
                            @{
                                var userVisit = schedule.MonthSchedule.UserVisits.ElementAt(index);
                                if (userVisit.AbsenceType is null)
                                {
                                    <span class="input-helper">
                                        <RadzenNumeric Min="0" Max="9"  @bind-Value="@userVisit.HoursCount" ShowUpDown="false"/>
                                    </span>
                                }
                                else
                                {
                                    <RadzenText>@userVisit.AbsenceType.Code</RadzenText>
                                }
                            }
                        </EditTemplate>

image

I'm afraid that I don't understand your question.

I need to make sure that the input is not highlighted in green after entering data

There is no such highlight by default in our component. Maybe this class is related:

UPDATE: Maybe the green comes from the default validation classes provided by Microsoft in the templates:

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

You can remove them if you do not need them.

1 Like