Set SelectedIndex doesn't work

Hello,

I have a SfTabView with a button to change page.
Here is the code :
        private int PageSuivante {
            get {
                var index = MenuSfTabView.SelectedIndex;
                var found = false;

                if (MenuSfTabView.Items == null || MenuSfTabView.Items.Count == 0)
                    found = true;

                while (!found) {
                    index++;
                    if (index >= MenuSfTabView.Items.Count)
                        index = 0;
                    if (!MenuSfTabView.Items[index].IsVisible) {
                        index++;
                    } else {
                        found = true;
                    }
                }

                return index;
            }
        }

        private void PageButton_Clicked(object sender, System.EventArgs e) {
            MenuSfTabView.SelectedIndex = PageSuivante;
        }

But when I click the button it doesn't work.

Regards,
Benoît NELISSEN

3 Replies 1 reply marked as answer

MS Mugundhan Saravanan Syncfusion Team April 15, 2021 06:27 PM UTC

Hi Nelissen,

Greetings from Syncfusion.

We have analyzed the reported issue. We have already fixed the reported issue. Please find the assembly for this below.

Assembly Version: 19.1.0.56

Assembly: https://www.syncfusion.com/downloads/support/forum/164522/ze/Custom_Assembly-839508441  

Note: Please refer the below link to apply the custom assembly

https://www.syncfusion.com/kb/8279/how-to-apply-the-custom-assemblies-when-configured-the-project-with-syncfusion-nuget


This fix will be included in our upcoming weekly NuGet release which will be available on 20th April 2021.

Could you please check this fix with your application and let us know, whether the issue is resolved or not. If the problem persists, please share your complete runnable sample, which will allow us to investigate further.

Regards,
Mugundhan S.



NB Nelissen Benoît April 19, 2021 01:30 PM UTC

Hi,

I tried the assemblies you provided. It worked. I will wait next NuGet release.

Thank you.

Benoît NELISSEN


JK Jeya Kasipandi Syncfusion Team April 20, 2021 08:57 AM UTC

Hi Nelissen,

Thanks for your patience.

We have included the fix in our latest Weekly NuGet release v19.1.0.57 which is available for download (https://www.nuget.org/ ). We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you would require any further assistance.

Regards,
Jeya K

Marked as answer
Loader.
Up arrow icon