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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

AddTab Adds but messes up ribbon

Thread ID:

Created:

Updated:

Platform:

Replies:

142803 Feb 20,2019 12:41 PM UTC Feb 22,2019 12:04 PM UTC Angular 4
loading
Tags: ejRibbon
Sumair Ahmed
Asked On February 20, 2019 12:41 PM UTC

Hi, 

I am simply trying to add a new tab programmticaly.  

I simply do this:

this.ribbon.widget.addTab("Test", [], 2);

It show the tab fine.  However, if i try to click it, it renders it as a hyperlink and not as a tab.  I noticed that the rendering doesn't attach the role attribute:
The middle on is the new tab (highlighted).



Worse off, my other tabs don't work.  By this i mean, when i select one of my other tabs, and the ribbon content disappears.   In the following picture, i chose the "Menu" item.  




How can i simply add a tab to the ribbon control?

Thanks


Silambarasan I [Syncfusion]
Replied On February 21, 2019 09:18 AM UTC

Hi Sumair, 
 
Thank you for contacting Syncfusion support. 
 
We have checked your reported issue by adding new tab without tab group items and the sample's working fine in our end without any issues. For your reference, please refer the below hosted sample. 
 
Hosted sample: 
 
Local sample: 
 
By default, the tab content is rendered as URL which is used for redirect to its appropriate tab group content. Could you please check the above sample and get back to us with more information such as ribbon rendering code snippets, details about the content in each tab?  
 
If possible, please replicate your issue in the provided sample and revert us. So, that we can analyze based on your scenario and provide you a solution at the earliest. The information provided would be great help for us to proceed further. 
 
Regards, 
Silambarasan 


Sumair Ahmed
Replied On February 21, 2019 12:18 PM UTC

I cannot get it to work.

I have attached a sample.  Just click on save button to add a new tab.

Can you have a look and see what i am doing wrong please.  I've tried it in many places and it's not working.

Attachment: src_6b284d5b.zip

Sumair Ahmed
Replied On February 22, 2019 09:50 AM UTC

Any joy? it's a bit weird why the behavior is not correct?

Christopher Issac Sunder K [Syncfusion]
Replied On February 22, 2019 12:04 PM UTC

Hi Sumair, 

Sorry for the inconvenience. 

We were able to reproduce your reported issue. It is occurring due to the usage of “showQAT“ property in the ribbon component. We have logged it as a bug from our side and the fix for this issue will be included in our 2019 Volume 1 SP1 release which is expected to be rolled out in the month of April, 2019. We appreciate your patience until then. 

For now, you can remove the “showQAT“ property from the ribbon sample to resolve this issue. 
We have modified your provided sample based on this. Please check it. 
 
Sample: 

Let us know if you have any concerns. 

Thanks, 
Christo 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;