how to Insert an Item in a Panel Bar.

2 posts, 0 answers
  1. Abid
    Abid avatar
    9 posts
    Member since:
    Jul 2011

    Posted 19 Jul 2011 Link to this post

    i am having an asp:panel on the page.. in that page, i want to insert a RadPanelBar. I have inserted an item in a PanelBar.. Now i want to generate a click event handler on the click of the item. How do i do that? my code is : 

      protected void Page_Load(object sender, EventArgs e)
        {   
        }
        protected void Panel1_Load(object sender, EventArgs e)
        {
    RadPanelBar pb = new RadPanelBar();
            Panel1.Controls.Add(pb);
            RadPanelItem rpi = new RadPanelItem("Student");
            pb.Items.Add(rpi);
            
        }
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 19 Jul 2011 Link to this post

    Hello Abid,

    The following help article describes the needed approach.
    Working With Items Using Server-Side Code.

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top