Radzen Tab does not output correct selected index

Was on version 2.15.8 and the "SelectedIndex" property for RadzenTabs was working as expected. On version 2.15.16 the "SelectedIndex" no longer works. It's output is "-1".

You should now use @bind-SelectedIndex if you want to keep it in sync.

<RadzenTabs @bind-SelectedIndex=@selectedIndex>
</RadzenTabs>

@code {
   int selectedIndex = 0;
}

Thanks.

I needed to subscribe to the selected index change event so I was able to get the selected index through the event.

SelectedIndexChanged="@(arg => OnTabChange(arg))"

@korchev I'm not sure I follow. Does this mean I have to hardcode @bind-SelectedIndex into the .razor page? I've set the SelectedIndex as in the image below, but it doesn't seem to allow me to change the tab programmatically. This only creates a SelectedIndex in the .razor page. I don't want to hardcode because Radzen will overwrite it every time I make changes to the form. Please let me know what I'm missing. One additional note, the selected checkbox seems to override the SelectedIndex value. This causes problems because it forces the developer to ensure that none of the tabs are set to selected after every time they make changes to one of the tabs. Having SelectedIndex be the driving force is a much better way of handling it. That way I can write it in code and not worry about it being overwritten accidentally.
image

No. You can set it as a custom attribute.

Radzen regenerates all pages unless they are added to the code generation ignore list.

This is by design at the moment.

Ok thanks. I think I get it. I'll run some more tests.