I tried this: Bound a new double value to the progress bar:
<RadzenProgressBar @bind-value="progress2" Style="margin-bottom: 20px" />
and retured the converted int value:
int progress;
double progress2 {
get
{
return Convert.ToDouble(progress);
}
set { }
}
Which leads to:
InvalidCastException: Unable to cast object of type 'Microsoft.AspNetCore.Components.EventCallback1[System.Double]' to type 'System.Action
1[System.Double]'.
But if i change progress from int to double, i get that bad boy here:
System.InvalidOperationException: Unable to set property 'valueChanged' on object of type 'Radzen.Blazor.RadzenProgressBar'. The error was: Unable to cast object of type 'Microsoft.AspNetCore.Components.EventCallback
1[System.Double]' to type 'System.Action
1[System.Double]'.