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

Problem getting SelectedItem on buttonClick

1 Answer 37 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Haderach
Top achievements
Rank 1
Haderach asked on 28 Apr 2011, 11:12 AM
Hello

I am trying to use a RadPanelBar with an XMLDataSource like this :

<telerik:RadPanelBar ID="pnlBar" Runat="server" Skin="Simple"  Width="100%" DataSourceID="XmlDataSource1" DataTextField="Text" DataValueField="Value"></telerik:RadPanelBar>
<asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/FluxRSS.xml"    XPath="/items/*"></asp:XmlDataSource>

with a RadButton in the same page.

But in the RadButton onClick event, pnlBar.SelectedItem is always null.
How can I do to make the selectedItem persist over a postback?

Thank your for your answer.
Read you soon.

1 Answer, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 03 May 2011, 01:47 PM
Hi Haderach,

Please take a look at the attached sample page. Here is also a demo of the server-side events of the RadPanelBar.

Kind regards,
Kate
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
Haderach
Top achievements
Rank 1
Answers by
Kate
Telerik team
Share this question
or