We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

TabPages keep changing order

I''m using the TabControlAdv and my tab pages will reorder themselves in a random order about 40% of the time I run my form in debug mode. I then have to reorder using the TabPage collection editor. Once I''m done working on my form and check it in, the problem will not occur until I have to work on it again. Has anyone run across this and have a solution? Thanks, Todd

7 Replies

DF Dinis Ferreira May 27, 2020 09:06 AM

Hello,

This problem keep happening in my project. Is there any solution?

Thanks


NK Niranjan Kumar Gopalan Syncfusion Team June 5, 2020 06:36 AM

Hi Dinis, 

Thanks for contacting Syncfusion support. 

We have checked your query “TabPages keep changing orders in TabControlAdv” and we are unable to reproduce the reported issue. We have created a simple sample in which four tab pages are added when Form is loaded and further more tab pages are added during run time, but the application worked properly without tab re-ordering . Please refer the below sample and video for same. If we are missing aby details please let us know otherwise if you can modify the attached sample to reproduce the issue and revert it back , it will be helpful for us to proceed further. 



Regards, 
Niranjan Kumar Gopalan 



GW Greg Wood November 17, 2021 06:13 PM

Still happening to me as well ... is there a way to programatically reorder the tabs?



KA KA replied to Greg Wood November 17, 2021 06:22 PM

Hi Greg,

I faced this issue, as well. The solution I found was to clear the tabpage collection: 

TabControlAdv1.TabPages.Clear()

Then, I added the pages in the order I wanted them shown.

TabControlAdv1.TabPages.Add(TabPageAdv1)
TabControlAdv1.TabPages.Add(TabPageAdv2)
TabControlAdv1.TabPages.Add(TabPageAdv3)

I placed these into my form load event, so that this happens on launch at runtime and that fixed it.



GW Greg Wood November 18, 2021 01:24 AM

when you do that do you have to programatically create all of the controls contained within those tabpages?



GW Greg Wood replied to Keshav Amla November 18, 2021 01:31 AM

Thank you so much! @KA


This solved the issue


Cheers :-)



SN Sudharsan Narayanan Syncfusion Team November 18, 2021 09:10 AM

Hi Gregg,

We are glad to know that the reported problem has been resolved at your end. 
Please let us know if you need any other assistance. We will be happy to assist you. 

Regards,
Sudharsan


Loader.
Live Chat Icon For mobile
Up arrow icon