How to load content an rerender sftabview

I currently  have about 5-6 tabs these tabs all have the same content. I want when the next tab will load the new content I have to refer to this article https://www.syncfusion.com/forums/147281/loading-content-in-sftabview and follow but it doesn't work, and i found the performance of sftbaview quite slow although the content null took about 3-4 seconds to load. I'm sorry that my English level is not good
I binding in viewmodel
 string[] RssItems = {
            "https://gamek.vn/trang-chu.rss",
            "https://cafef.vn/trang-chu.rss",
            "https://thanhnien.vn/rss/home.rss",
            "https://tuoitre.vn/rss/tin-moi-nhat.rss",
            "https://tinhte.vn/rss",
            "https://cafebiz.vn/cong-nghe.rss"};

 public void SetContent()
        {
            //Process Auto generate tabitem
            if (RssItems.Length != 0)
            {
                int i = 0;
                foreach (var itemRss in RssItems)
                {
                    var NamePath = itemRss.Substring(8);
                    int index = NamePath.IndexOf('.');
                    if (index > 0)
                    {
                        var pieces = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase(NamePath.Substring(0, index).ToLower());
                        //TabItemContents content = new TabItemContents(itemRss);
                        TabItemHeaders headers = new TabItemHeaders(pieces, ColorItems.GetValue(i).ToString());
                        tabItem = new SfTabItem
                        {
                            HeaderContent = headers.Content,
                            Content = null,
                            FontIconFontFamily = "Arial",
                            FontIconFontSize = 100
                        };
                        i += 1;
                        Tabitems.Add(tabItem);
                    }
                }
            }

 private void HandleSelected(object obj)
        {
            //get property element in list header
            TabItemCollection tabItems = (obj as SfTabView).Items;
            foreach (var item in tabItems)
            {
                int selectedIndex = tabItems.IndexOf(item);

                if (selectedIndex == index)
                {
                    ((item.HeaderContent as StackLayout).Children[0] as PancakeView).Margin = new Thickness(0, 5, 0, 0);
                    ((item.HeaderContent as StackLayout).Children[0] as PancakeView).Padding = new Thickness(0, 0, 0, -1);
                    if (item.Content == null)
                    {
                        item.Content = GetItemContent(selectedIndex);
                    }
                }
                else
                {
                    ((item.HeaderContent as StackLayout).Children[0] as PancakeView).Margin = new Thickness(0, 10, 0, 0);
                    ((item.HeaderContent as StackLayout).Children[0] as PancakeView).Padding = new Thickness(0, 0, 0, -6);
                }
            }
        }
 private Xamarin.Forms.View GetItemContent(int index)
        {
            return new TabItemContents(RssItems.GetValue(index).ToString()).Content;
        }

*TabItemContents is content page 

3 Replies

JK Jeya Kasipandi Syncfusion Team May 4, 2020 09:34 AM UTC

Hi TruongCP,

Greetings from Syncfusion.

We have already logged feedback for performance related problem in SfTabview.You can track the status of this from below link

https://www.syncfusion.com/feedback/4707/provide-lazy-loading-of-tab-page-for-sftabview-greatly-improve-loading-performance  

If you have any more specifications/suggestions on this, you can add it as a comment in the portal.

This performance improvement will be available in our upcoming Volume 2 main release which is expected to be rolled out on end of June 2020. We appreciate your patience until then.

Regards,
Jeya K


SP Sakthivel Palaniyappan Syncfusion Team July 9, 2020 10:53 AM UTC

Hi TruongCP,

Sorry for the inconvenience.

We have not included the feature in our Volume 2 , 2020 main release. We are currently working on this, and due to more architectural changes and to cover more working scenarios it is taking more time than expected. We will include the improvement in our upcoming Volume 3, 2020 main release. Which will be expected to be rolled out on end of September 2020. We are deeply sorry for this delay.

Regards,
Sakthivel P.



SP Sakthivel Palaniyappan Syncfusion Team October 6, 2020 11:59 AM UTC

Hi TruongCP,

We are glad to announce that our Essential Studio 2020 Volume 3 release v18.3.0.35 is rolled out and we have included the support in Android platform and is available for download under the following link.

https://www.syncfusion.com/forums/158306/essential-studio-2020-volume-3-release-v18-3-0-35-is-available-for-download

We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.

Regards,
Sakthivel P.   
 


Loader.
Up arrow icon