MDIChild RibbonPanelMergeContainer Missing after changing MDI Childs

Hello.

I have a MDI Container form with two MDI Child forms, one of those has a RibbonPanelMergeContainer which is shown the first time after I create the form and activate It, but it hides after activating another MDI child and coming back to the child with the RibbonPAnelMergeContainer. Is there a way to show the correct panel after deactivating a form with a MergeContainer and activating it back?

This is the menu after creating the MDI Child.


This is the menu after activating another MDI Form and coming back.


Regards.

5 Replies

AA Arulraj A Syncfusion Team October 10, 2018 12:40 PM UTC

Hi Jhonathan, 

Thanks for using Syncfusion products. 
 
We have prepared a sample to showcase your requirement by adding two form with RibbonPanelMergeContainer in an MDI parent Form. When a child form is active the respective Ribbon will be shown in the container along with the parent Form’s Ribbon. 
 
Please have a look at the sample and let us know if you need any further assistance on this. 
 
Regards, 
Arulraj A 



JA Jhonathan Aristizabal October 10, 2018 01:31 PM UTC

Thanks for your fast response, but in your sample the RibbonPanelMergeContainer is creating another ToolStripTabItem, different from my sample where I am merging with an existing ToolStripTabItem (Inicio), I modified your project to simulate my problem, you just need to add the following code to your Form_Load events on the MDIChilder forms, and it will hide the options after changing MDI Forms.

       private void Form2_Load(object sender, EventArgs e)
        {
            if (this.Controls.OfType<RibbonPanelMergeContainer>().Any())
            {
                foreach (var control in Controls.OfType<RibbonPanelMergeContainer>())
                {
                    control.Text = "Home";
                }
            }
        }


AA Arulraj A Syncfusion Team October 11, 2018 01:08 PM UTC

Hi Jhonathan, 

Thank you for the update. 

We are able to reproduce the reported problem in version 16.1.0.41. This behavior has been changed from the version 16.2.0.46, if the tabs have been created with same name, the tab get merged and it restricts the creation of duplicate tab. If you want to persist the duplicate tab, you can use the property named MergeDuplicateTabs and set the value as False. The default value of this property would be True. 

Please let us know if you need patch which includes the property MergeDuplicateTabs in your version. Please confirm your Essential Studio version so that we can create an incident under your account and provide the patch for the same. 

Arulraj A 



JA Jhonathan Aristizabal October 11, 2018 01:30 PM UTC

Hi Arulraj.

I can confirm that i am indeed using the version 16.2.0.46 which includes the property MergeDuplicateTab in the RibbonControlAdv control, the problem is that I want my tabs to be merged, to hide when the owner MDIChild form loses its focus and show back when said form regains Its focus. I have pasted some pictures of the sample you sent to me illustrating my problem and attached the project with the modifications so you can check first hand.









Regards

Attachment: RibbonPanelMerge_Modified_2c0c0f56.zip


AA Arulraj A Syncfusion Team October 12, 2018 07:19 AM UTC

Hi Jhonathan,  

Thanks for the update.  

We are able to reproduce the reported issue “Item is not retained while switching the active Form in RibbonControlAdv”. We have logged a bug report for the same and it will be available in the upcoming release 2018 Volume 3 SP1 which is planned to be released at the end of October 2018.  

Please check the incident under your direct trac account for the further follow up related to this issue fix. 

Regards,  
Arulraj A 


Loader.
Up arrow icon