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

Get button click from dynamically added usercontrol

1 Answer 52 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 2
Joe asked on 10 Aug 2011, 04:02 AM
Howdy,

I started working with this demo ( http://demos.telerik.com/aspnet-ajax/panelbar/examples/applicationscenarios/accessingnestedcontrols/defaultcs.aspx ) to help me with a method to create a new user account. What I have (in C#) is:

master page
content page
radajaxpanel
radpanelbar

So when the content page is loaded:

1. I create root and child panelItems and load them into the radpanelbar
2. load a previously created user control .ascx into the first panelItem.
3. The user control will do some stuff (accept user input) and a button within the user control will be enabled to go to the next portion of the process.

I want that button, (on the user control), to tell the radpanelbar control (on the content page) that it's OK to expand the next panelitem. How can I make that happen?

1 Answer, 1 is accepted

Sort by
0
Nikolay Tsenkov
Telerik team
answered on 11 Aug 2011, 07:45 PM
Hello Joe,

You can handle the click of the button either server or client-side and then expand the appropriate item in the PanelBar.

I assume that server side wouldn't make a challenge, so I will give few resources for the Client-Side API of RadPanelBar:
 - Basics: http://www.telerik.com/help/aspnet-ajax/panelbar-client-side-basics.html
 - RadPanelBar object API: http://www.telerik.com/help/aspnet-ajax/panelbar-client-side-radpanelbar.html
 - Demo of Client-Side API: http://demos.telerik.com/aspnet-ajax/panelbar/examples/clientside/clientsideapi/defaultcs.aspx

I hope this helps.

Regards,
Nikolay Tsenkov
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
PanelBar
Asked by
Joe
Top achievements
Rank 2
Answers by
Nikolay Tsenkov
Telerik team
Share this question
or