Hello,
I'm using RadzenSteps and RadzenStepItem in my Blazor-Server application with a custom localization framework. I have bound some localized text to RadzenStepItem.Text property,
though changing the locale, won't trigger an automatic refresh on the RadzenSteps.
I've debugged my way into RadzenStepItem and solved it by changing
[Parameter]
public string Text { get; set; }
to
string _text;
[Parameter]
public string Text
{
get
{
return _text;
}
set
{
if (_text != value)
{
_text = value;
if (Steps != null)
{
Steps.Refresh();
}
}
}
}
Since RadzenSteps.Refresh only invokes StateHasChanged() I don't think it will have any great performance impact.
Is this the way to deal with the issue?