Changing RadzenStepItem Text won't trigger a UI refresh

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?

Update:
The exact same issue appears in RadzenGridColumn.
Binding the Title property and changing it afterwards, won't trigger a UI update.
So I tried the same approach and changed the RadzenGridColumn.razor
from

[Parameter]
public string Title {get; set;} 

to

string _title;
[Parameter]
public string Title
{
    get
    {
        return _title;
    }
    set
    {
        if (_title != value)
        {
            _title = value;

            if (Grid != null)
                Grid.Refresh();
        }
    } 
}

where Grid.Refresh() is a new method that just calls StateHasChanged().

Thanks @efthymios.ks! We will improve this with our next update (later this week).

1 Like

Hello @enchev. Any update on this matter?

Hi @efthymios.ks,

We didn't manage to add this change. If you are in a hurry, we accept also pull requests - I've merged two today: