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

Ribbon Content changed dynamically

Thread ID:





127263 Nov 7,2016 02:07 PM UTC Nov 8,2016 01:14 PM UTC JavaScript 3
Tags: ejRibbon
Michael Salzlechner
Asked On November 7, 2016 02:07 PM UTC

is it possible to completely replace the content of a group and/or a tab in the ribbon control dynamically?

we do this when the user navigates to different parts of the application



Michael Salzlechner
Replied On November 7, 2016 04:40 PM UTC

just to add some more info

i am trying to use some of the available methods. The doc and examples do not seem to be correct on a number of these

i see the following methods

removeTabGroupContent(tabIndex, groupIndex, [subGroupIndex])
addTabGroupContent(tabIndex, groupIndex, subGroupIndex, content, [contentIndex])

the groupIndex parameter in removeTabGroupContent is really a string with the text of the group not an index i believe

so i thought i should be able to remove all content and add but that doesnt seem to work

ribbonObj.removeTabGroupContent(1,"One", 0);
ribbonObj.addTabGroupContent(1, 0, 0, content, 0);

if i only use addTabGroupContent it works. if i only use removeTabGroupContent it works but if i remove and add i get an empty group

Rajesh Kumar Anburajan [Syncfusion]
Replied On November 8, 2016 12:54 PM UTC

Hi Michael,  
Thank you for contacting Syncfusion support.   
We have considered this RemoveTabGroupContent Was Not working Properly as an issue and a support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates.   
Rajesh kumar.A

Rajesh Kumar Anburajan [Syncfusion]
Replied On November 8, 2016 01:14 PM UTC

Hi Michael,      
Query #: The groupIndex parameter in removeTabGroupContent is really a string with the text of the group not an index I believe 

The parameter groupIndex is wrongly set in UG, we have updated UG with proper parameter as like below. 
ribbon tab index. 
ribbon group text. 
sub group index in the ribbon group, 
Online UG will be refreshed ASAP. 
Rajesh kumar.A 


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