Hi,
I have this below:
<RadzenTabs Style="Height: 600px" SelectedIndex="@tabIndex" Change="@(args => Change(args))" >
void Change(object value)
{
StateHasChanged();
}
The Change function gets called but now the Tabs do not change in the UI. If I remove the Change event and definition, everything works well. Using 2.5.8. Any Idea?
enchev
April 14, 2020, 3:01pm
2
You can update the property set as SelectedIndex:
void Change(int value)
{
tabIndex = value;
StateHasChanged();
}
Thank you, it is working now.
What is the difference between Change and SelectedIndexChanged callback methods?
enchev
April 14, 2020, 6:36pm
4
SelectedIndexChanged is used internally by Blazor binding and should not be used by the developer.