Access controls inside header from item datatbound

2 posts, 0 answers
  1. Roukaya
    Roukaya avatar
    17 posts
    Member since:
    Aug 2012

    Posted 24 Apr 2013 Link to this post

    hello all , 

    i've this piece of code : 
    <telerik:RadPanelBar runat="server" ID="RewardsPB" Width="900px" OnItemDataBound="RewardsPB_ItemDataBound" AppendDataBoundItems="false" OnItemCreated="RewardsPB_ItemCreated" OnClientItemClicked="stopPropagation">
                    <telerik:RadPanelItem >
                            <asp:DataList runat="server" ID="PartnerDL" RepeatColumns="4">
                                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("STORE_NAME") %>'></asp:Label>
                                    <asp:LinkButton runat="server" ID="Img"><img src='<%# "/images/products/prod_" + Eval("STORE_ID")+".png"%>' width="75px" height="75px"/></asp:LinkButton>

    i want to access the DataList : "PartnerDL" from itemDataBound event ..

    How can i achieve that ??? 

    Thanks in advance ... 
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 25 Apr 2013 Link to this post


    Try the following code.
    void RewardsPB_ItemDataBound(object sender, RadPanelBarEventArgs e)
         var list = RewardsPB.Items[0].Header.FindControl("PartnerDL");

  3. DevCraft R3 2016 release webinar banner
Back to Top