Code Behind Accordian with links...links not showing.

  1. #1

    Code Behind Accordian with links...links not showing.

    I'm trying to create an accordian sub-menu with links in several panels.
    But the link aren't showing up...

     Accordion accordion = new Accordion();
                accordion.Height = Unit.Pixel(400);
                Coolite.Ext.Web.Panel panel1 = new Coolite.Ext.Web.Panel("Client");
                Coolite.Ext.Web.Panel panel2 = new Coolite.Ext.Web.Panel("Manager");
                Coolite.Ext.Web.Panel panel3 = new Coolite.Ext.Web.Panel("Fund");
    
    
                accordion.Items.Add(panel1);
                accordion.Items.Add(panel2);
                accordion.Items.Add(panel3);
    
    
                Coolite.Ext.Web.HyperLink link = new Coolite.Ext.Web.HyperLink();
                link.Text = "test";
                link.NavigateUrl = "Default.aspx";
    
                panel1.Items.Add(link);
    
    
                Window window = new Window();
    
                window.Title = "Accordion Window";
                window.Width = Unit.Pixel(250);
                window.Height = Unit.Pixel(400);
                window.Maximizable = true;
                window.Icon = Icon.ApplicationTileVertical;
                window.BodyBorder = false;
     
                window.BodyControls.Add(accordion);
    
    
                this.PlaceHolder1.Controls.Add(window);
  2. #2

    RE: Code Behind Accordian with links...links not showing.

    Hi,

    Add link to the BodyControls (not Items)
    Vladimir Shcheglov
    Sr. Developer
  3. #3

    RE: Code Behind Accordian with links...links not showing.

    Thanks Vladimir, works like a charm.
    Great work on the entire project. You guys did a awesome job!

Similar Threads

  1. links or menu in west panel
    By svk in forum 1.x Help
    Replies: 0
    Last Post: May 09, 2012, 10:36 AM
  2. Replies: 0
    Last Post: Apr 06, 2012, 11:11 AM
  3. Links Inside GridPanel
    By marcmvc in forum 1.x Help
    Replies: 1
    Last Post: May 17, 2010, 1:43 PM
  4. [CLOSED] Add JavaScript to Links in HtmlEditor
    By macap in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Oct 14, 2009, 9:22 AM
  5. Replies: 1
    Last Post: Jul 01, 2009, 3:14 PM

Posting Permissions