not generated the click event of server item

Apr 3, 2012 at 4:26 PM

 

 not generated the click event of server item, if you create the event but never executed

 

 OfficeWebUI.OfficeRibbon ribbon = new OfficeWebUI.OfficeRibbon();
            ribbon.ID = "ribbon_" + DateTime.Now.Ticks.ToString();

            ribbon.ShowToggleButton = false;
            ribbon.ApplicationMenuText = "ServoWeb";
            ribbon.ApplicationMenuType = OfficeWebUI.ApplicationMenuType.Backstage;
            RibbonContext contexto = new RibbonContext();
            contexto.ContextColor = "transparent";
            contexto.ID = "contexto_" + DateTime.Now.Ticks.ToString();
            {
                RibbonTab tabPlantel = new RibbonTab();
                tabPlantel.Text = "Plantel";
                tabPlantel.ID = "tabPlantel_" + DateTime.Now.Ticks.ToString();

                contexto.Tabs.Add(tabPlantel);

                {
                    RibbonGroup groupLeft = new RibbonGroup();
                    groupLeft.ID = "groupLeft_" + DateTime.Now.Ticks.ToString();
                    groupLeft.Text = "Calendario";
                    tabPlantel.Groups.Add(groupLeft);

                    {
                        GroupZone zone1 = new GroupZone();
                        zone1.Text = "Zona 1";
                        zone1.ID = "zone1_" + DateTime.Now.Ticks.ToString();
                        groupLeft.Zones.Add(zone1);

                        {
                            LargeItem item1 = new LargeItem();
                            item1.ID = "item1_" + DateTime.Now.Ticks.ToString();
                            item1.Text = @"Ciclos
Administrativos"; item1.ImageUrl = "~/Ribbons/Plantel/ic_sesnet_32px_059.png"; item1.Click+=new EventHandler(item1_Click); //--> here problem !!! zone1.Content.Add(item1);