Dynamic Load Ribbon

Feb 28, 2009 at 10:13 AM
Hello,

   How to manag loading part of Ribbon base on User rights  i mean say i need to add Some tabs or some ribbon buttons base on rights given to user who login to the system
how can  we manage that part

Jignesh


Aug 2, 2009 at 5:32 AM

You have to use codes.

for instance, if you want to add a tab named "tab1" in to ribbon according to the user right

if (user.haveEnoughRights)

{

     RibbonTab tab1 = new RibbonTab() { Label = "tab1"};

     this.ribbon.Tabs.Add(tab1);

     this.ribbon.OnApplyTemplate();

}