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.
Unfortunately, activation email could not send to your email. Please try again.

Ribbon Content changed dynamically

Thread ID:

Created:

Updated:

Platform:

Replies:

127263 Nov 7,2016 09:07 AM Nov 8,2016 08:14 AM JavaScript 3
loading
Tags: ejRibbon
Michael Salzlechner
Asked On November 7, 2016 09:07 AM

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

thanks

Mike

Michael Salzlechner
Replied On November 7, 2016 11:40 AM

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 07:54 AM

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.   
   
   
Regards,   
Rajesh kumar.A

Rajesh Kumar Anburajan [Syncfusion]
Replied On November 8, 2016 08:14 AM

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. 
 
 
Name 
Type 
Description 
tabIndex 
number 
ribbon tab index. 
groupText 
string 
ribbon group text. 
subGroupIndex 
number 
sub group index in the ribbon group, 
 
 
Online UG will be refreshed ASAP. 
    
Regards,    
Rajesh kumar.A 


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.

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.

;