Problem getting SelectedItem on buttonClick

2 posts, 0 answers
  1. Haderach
    Haderach avatar
    45 posts
    Member since:
    Dec 2006

    Posted 28 Apr 2011 Link to this post


    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.
  2. Kate
    Kate avatar
    1898 posts

    Posted 03 May 2011 Link to this post

    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,
    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.

Back to Top