RadzenNumericRangeValidator not working with @oninput

Hi Radzen Team,

I am using RadzenNumericRangeValidator for validation on numeric and it is not working with @oninput, oninput is working fine.
if I remove @oninput the validation is working, but I want to use both.
Could you please suggest me on this.

<RadzenNumeric Name="DecimalCount" @bind-Value="@decimalCount" TValue="decimal?" Step="0.1" @oninput="@(args=> CheckCount(args.Value.ToString(), "DecimalCount"))" /><RadzenNumericRangeValidator Component="DecimalCount" Max="12" Text="It must be between 0-12" Popup="true" Style="position: absolute; />

Hi @Shlok,

We can't reproduce this problem (see attached gif). I recommend commenting out the code in your CheckCount method to see what prevents it from working.

Hi @korchev, below is the CheckCount method:

protected void CheckCount(string value, string control){

if (control == "DecimalCount")
{
	if (!string.IsNullOrWhiteSpace(value))
		decimalCount = Convert.ToDecimal(value);
	else
		decimalCount = null;
}

if (control == "DecimalCount1")
{
	if (!string.IsNullOrWhiteSpace(value))
		decimalCount1 = Convert.ToDecimal(value);
	else
		decimalCount1 = null;
}
	
if (!string.IsNullOrWhiteSpace(sName) && (decimalCount != null || decimalCount1 != null)
	isBtnDisabled = false;
else
	isBtnDisabled = true;

}

I don't know what this code is doing - you should investigate what could be causing the validation to fail. I guess it is updating the value without running validation again.

isBtnDisabled(bool) is the variable used to disable/enable the button based on the sName(string), decimalCount(decimal?) and decimalCount1(decimal?).
If the sName is not empty and one of these two decimalCount or decimalCount1 is not null then only the button should enable. That's just it does.