How do I access control server side in ItemTemplate

2 posts, 1 answers
  1. Adam
    Adam avatar
    177 posts
    Member since:
    Oct 2012

    Posted 08 Jul 2008 Link to this post

    I have a drop down list inside of an ItemTemplate. However, I'm unable to access the drop down list from the server side code. I wanted to catch the postback of the item and handle it server side as well. Is there something special I need to do to access this, or will I need to go through and find the control and add a handler to it.

    Here is my ItemTemplate:

                    <telerik:RadToolBarButton> 
                        <ItemTemplate> 
                            <asp:DropDownList ID="ddlCulture" runat="server"
                            </asp:DropDownList> 
                        </ItemTemplate> 
                    </telerik:RadToolBarButton> 

  2. Answer
    Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 08 Jul 2008 Link to this post

    Hello Adam,

    I believe that this article will help you: Accessing Controls Inside Templates

    Best wishes,
    Veskoni
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top