# Dynamically adding tab items nolonger works after version 2.15.11

**URL:** <https://forum.radzen.com/t/dynamically-adding-tab-items-nolonger-works-after-version-2-15-11/5383>\
**Category:** Radzen.Blazor Components\
**Created:** [October 24, 2020, 4:44am UTC](https://forum.radzen.com/t/dynamically-adding-tab-items-nolonger-works-after-version-2-15-11/5383 "2020-10-24T04:44:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NickJ](https://forum.radzen.com/user_avatar/forum.radzen.com/nickj/32/5295_2.png) [@NickJ](https://forum.radzen.com/u/NickJ)\
**Post date:** [October 24, 2020, 4:44am UTC](https://forum.radzen.com/t/dynamically-adding-tab-items-nolonger-works-after-version-2-15-11/5383/1 "2020-10-24T04:44:31Z")

</div>

Hi,

I have a project with a RadzenTabs control in the main page that I dynamically add tab items to show views with different information when required.

I have noticed that since version 2.15.12 the RadzenTabs.AddTab method no longer adds or displays these dynamic RadzenTabsItems.

I have added an example project to demonstrate this issue. If you change the version of Radzen.Blazor between 2.15.11 and 2.15.12-17 you can see the difference.

[BlazorApp1.zip](https://forum.radzen.com/uploads/short-url/nltoxpoxVUXeZGZkXaboT275IGR.zip) (837.4 KB)

Regards  
Nick

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [October 24, 2020, 4:52am UTC](https://forum.radzen.com/t/dynamically-adding-tab-items-nolonger-works-after-version-2-15-11/5383/2 "2020-10-24T04:52:30Z")

</div>

You shouldn't use the AddTab method to add tabs. Use a declarative approach instead:

```auto
<RadzenTabs>
<Tabs>
  @foreach(var item in items)
  {
      <RadzenTabsItem Text=@item.Text>
  }
</Tabs>
</RadzenTabs>

@* Manipulate the items property (Add/Remove) to update the tabs *@

```
