Can anyone help me with this.
How to add / remove the tabs. Tab Content is a razor page.So i want to show the same page whenerever i add a tab with the index .
List<TabModel> tabs = new List<TabModel>()
{
new TabModel { Text = "0" },
};
public class TabModel
{
public string Text { get; set; }
}
void NewIndexChange(int value)
{
tabIndex = value;
string tempResult = $"current tab {value} selected on {DateTime.Now}";
StateHasChanged();
}
public async Task AddTab()
{
tabs.Add(new TabModel { Text = $"Tab {tabs.Count + 1}" });
}
public async Task RemoveTab()
{
if (tabs.Count > 0)
{
tabs.RemoveAt(0);
}
}
But the thing is this when i execute this code. Razor page index is not changing with the tab. and the tab is not fitting the div. I cant remove the tab i click.
Can anyone please help me to find a solution on this.
Thank You! > Blockquote
Im getting the razor page in one tab. While adding new tab how to get this page in every tab uniquely. im not getting that. Im getting the razor page but while changing the tab razor page is as the first tab. Do i need to pass the TabIndex with the razor page ?
I am afraid I don't understand what the problem is and I didn't see anything out of the ordinary when I tested with the provided code. If you have a Radzen Professional subscription you can send us your application to info@radzen.com and we would troubleshoot.