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

How do I access control server side in ItemTemplate

1 Answer 101 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 08 Jul 2008, 01:56 PM
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> 

1 Answer, 1 is accepted

Sort by
0
Accepted
Veselin Vasilev
Telerik team
answered on 08 Jul 2008, 03:39 PM
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
Tags
ToolBar
Asked by
Adam
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or