Dynamically added tabs do not render right away
Hi HFirst,
Greetings from Syncfusion Support..!
We have validated your reported query at our end and prepared the sample based on your shared details. But unfortunately, we were unable to replicate the reported issue. Please refer the sample in the following link.
Code Snippet:
@using Syncfusion.Blazor.Navigations @using Syncfusion.Blazor.Schedule @using Syncfusion.Blazor.Grids @using Syncfusion.Blazor.Buttons
@code{ SfTab TabObj; List public RenderFragment ScheduleContent = builder => { builder.AddContent(1, @ }; public void OnAddItem() { TabData = new List { new TabItem() { Header = new TabHeader() { Text = "Schedule" }, ContentTemplate = @ScheduleContent } }; TabObj.AddTab(TabData, 0); } public List
protected override void OnInitialized() { Orders = Enumerable.Range(1, 75).Select(x => new Order() { OrderID = 1000 + x, CustomerID = (new string[] { "ALFKI", "ANANTR", "ANTON", "BLONP", "BOLID" })[new Random().Next(5)], Freight = 2.1 * x, OrderDate = DateTime.Now.AddDays(-x), }).ToList(); } public class Order { public int? OrderID { get; set; } public string CustomerID { get; set; } public DateTime? OrderDate { get; set; } public double? Freight { get; set; } } }
|
Kindly try the above sample and if the issue still persists at your end kindly share the below details to serve you better?
- Try to replicate the issue in the above sample
- Share the code snippets
- Share the issue depicting image/video
- Share issue replicating sample if possible
Regards,
Satheesh Kumar B
- 3 Replies
- 2 Participants
- Marked answer
-
HF HFirst
- Dec 24, 2020 06:06 PM UTC
- Dec 29, 2020 08:52 AM UTC