This is a migrated thread and some comments may be shown as answers.

how to Insert an Item in a Panel Bar.

1 Answer 61 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Abid
Top achievements
Rank 1
Abid asked on 19 Jul 2011, 12:07 PM
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);
        
    }

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 19 Jul 2011, 12:32 PM
Hello Abid,

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

Thanks,
Shinu.
Tags
PanelBar
Asked by
Abid
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or