Mouse Clicks in TabItem changes selected tab to last tab

Hello

I'm adding tabItems to a TabControleExt in the code behind of the MainWindow UserControle. Using the following code:

TabItemExt tabItem = new TabItemExt()

{

         Content = _pillarControl,

         Header = _pillarControl.getPillarModel.Name,

 };

TabControleMain.Items.Add(tabItem);


This creates the new TabItem the way I want it but for some reason then I Right Click or Left Click in the content View of any of the other tabs the TabControle changes the Currently selected tab to the Last tab I added.

When I remove the last tab this stops happening. I suspect there is some property that flags the last added Tab as a default tab or something and as soon as I click in the content view of any of the other tabs the currently selected tab gets set to the tab with that flag. 


9 Replies

SN Sudharsan Narayanan Syncfusion Team March 3, 2022 01:44 AM UTC

Hi Gerrit,

We were unable to reproduce the reported issue that "Mouse Clicks in TabItem changes selected tab to last tab" from our end. We have prepared the sample and tested the reported issue. Please see the sample provided below.

Sample: https://www.syncfusion.com/downloads/support/forum/173291/ze/TabControlExtSelectedTab354020729


Please check the sample and let us know your concerns. If we misunderstood your query, please modify the sample, and share the details about the replication steps of the reported query and video for the same. So, it would be helpful for us to proceed further and provide a prompt solution to this.

Regards,
Sudharsan



GE Gerrit March 29, 2022 12:34 PM UTC

Hello 

I managed to recreate the scenario in the attached example. I know this implantation in quite unorthodox and if I could do it differently from the start I would. I now see a TabControle is not he right control to use here but if a work around could be found it would be great. 

Basically I want a singleton instance of the UserControle as it stays the same in each tabItem it is only the data model that changes from tabItem to TabItem. The reason I don't want to use multiple instances of the UserControle each with its own dataModel is because the UserControle uses up to much memory so if there is a workaround for that it would also be fine. 


Attachment: TabControlExtSelectedTab354020729_(2)_e7d57ab9.zip


SN Sudharsan Narayanan Syncfusion Team March 30, 2022 05:04 PM UTC

Hi Gerrit,

We can also be able to reproduce the reported query. But currently, we are analyzing your reported query on “Right-Click on the content selected tab to the last tab
”. We will validate and update you with the details on or before 01st April 2022.

Regards,
Sudharsan



GT Gokul Thanudhas Syncfusion Team April 6, 2022 02:43 PM UTC

Hi Gerrit,

We have confirmed the reported scenario is a defect and logged a report for the reported scenario “Right click on the content area it select last tab when assigning the singleton instance to content in TabItem”. We will provide the patch for the reported issue on 22nd April 2022(due date).


You can track the status of this defect using the following feedback link:      

https://www.syncfusion.com/feedback/33916/right-click-on-the-content-area-it-select-last-tab-when-assigning-the-singleton


If you have any more specification replication procedures or a scenario to be tested, you can add it as a comment in the portal.

   

Please let us know if you need any further assistance.


Regards,

Gokul T.



GE Gerrit replied to Gokul Thanudhas April 19, 2022 08:26 AM UTC

Hello

Is this bug report still open? I don't have a access to the bug tracker? And the problem was still not fixed in the newest update.

Regards 



GT Gokul Thanudhas Syncfusion Team April 19, 2022 11:44 AM UTC

Hi Gerrit,


Yes, the bug report is still open. We have provided access to the feedback link to your credentials. So, please try by clearing the cache and using an incognito window.

As we promised we will provide the fix for the issue in the patch version on April 22, 2022. We appreciate your patience until then.



Regards,

Gokul T.




GT Gokul Thanudhas Syncfusion Team April 22, 2022 04:59 PM UTC

Hi Gerrit,


We have fixed the reported issue “Right click on the content area it selects last tab when assigning the singleton instance to content in TabItem" from our end.

This patch can be downloaded from the links below. 

Recommended approach - exe will perform automatic configuration.  

Please find the patch setup from the location below:           

Patch link: 

https://syncfusion.com/Installs/support/patch/20.1.0.47/1403722/F173291/SyncfusionPatch_20.1.0.47_1403722_4222022094244448_F173291.exe

Please find the patch assemblies alone from the location below:            

Assemblies Link:    

https://syncfusion.com/Installs/support/patch/20.1.0.47/1403722/F173291/SyncfusionPatch_20.1.0.47_1403722_4222022094244448_F173291.zip


NuGet link:  

https://syncfusion.com/Installs/support/patch/20.1.0.47/1403722/F173291/SyncfusionNuget_20.1.0.47_1403722_4222022094244448_F173291.zip


Assembly Version: 20.1.0.47

Installation Directions:           

This patch should replace the files " Syncfusio.Tools.WPF” under the following folder.           

$system drive:\ Files\Syncfusion\Essential Studio\$Version # \precompiledassemblies\$Version#\[TargetFramework]           

Eg : $system drive:\Program Files\Syncfusion\Essential Studio\20.1.0.47\precompiledassemblies\20.1.0.47\ 4.6 

To automatically run the Assembly Manager, please check the Run assembly manager checkbox option while installing the patch. If this option is unchecked, the patch will replace the assemblies in precompiled assemblies’ folder only. Then, you must manually copy and paste them to the preferred location, or you must run the Syncfusion Assembly Manager application (available from the Syncfusion Dashboard, installed as a shortcut in the Application menu) to re-install assemblies. 

https://www.syncfusion.com/support/directtrac/patches  


Disclaimer:           

Please note that we have created this patch for version 20.1.0.47 specifically to resolve the issue reported in this incident. If you have received other patches for the same version for other products, please apply all patches in the order received.  Please let us know, if you are using any other Syncfusion version, we will provide patch in your version. This fix will be included in our upcoming Volume 1, SP release which will be available at the mid of May 2022.


Please let us know if you need any further assistance on this. We will be glad to assist you.


Regards,

Gokul T




GE Gerrit replied to Gokul Thanudhas May 13, 2022 08:49 AM UTC

Hello 

The bug of right clicking is fixed but left clicking in the content view still changes the selected tab to the last one 



GT Gokul Thanudhas Syncfusion Team May 16, 2022 03:22 PM UTC

Hi Gerrit,


Syncfusion TabControlExt is inherited from the MS tabcontrol. As last tab selection when left click on the content area issue occurs in MS tabcontrol, this issue is occured in syncfusion TabControlExt also.


Regards,

Gokul T



Loader.
Up arrow icon