Questionat about RadPanelbar_ItemDataBound event...

2 posts, 0 answers
  1. J
    J avatar
    143 posts
    Member since:
    Jun 2006

    Posted 09 Jul 2008 Link to this post

    Here is my control:
    <radP:RadPanelbar ID="RadPanelbar1" runat="server"   
        Skin="VPort" SkinsPath="~\RadControls\Panelbar\Skins" 
        ExpandAnimation-Duration="0" ExpandAnimation-Type="None"   
            <span id='spText' onmouseover='javascript:fnChangeRowColor(this, 1);'   
                    <asp:label ID="lbl" runat="server"></asp:label> 
            <span id='spImages' style='text-align:right;float:right;display:inline;vertical-align:middle;'>  
                <asp:Image ID="img1" runat="server" ImageUrl="~/spacer.gif" 

    If i call event RadPanelBar1_ItemDataBound how do I get access to the controls "lbl" and "img1"?

    This is what I have so far:
        void RadPanelbar1_ItemDataBound(object sender, RadPanelbarEventArgs e)  
            RadPanelItem item = e.Item;  
            DataRowView dataRow = (DataRowView)e.Item.DataItem;  
  2. Atanas Korchev
    Atanas Korchev avatar
    8462 posts

    Posted 10 Jul 2008 Link to this post

    Hi Jason,

    You should use the FindControl method:

    Label label = (Label)e.Item.FindControl("lbl");

    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. DevCraft R3 2016 release webinar banner
Back to Top