I have been trying to create a RadToolBarButton Dynamically in C# with an ItemTemplate. Does anyone have an example of how to do the following in code behind?
Thanks,
Wes
<telerik:RadToolBar runat="server" ID="toolBarKeywordSearch" EnableRoundedCorners="true" Style="height: 35px;" EnableShadows="true" OnButtonClick="toolBarWorkItem_Onclick"> <Items> <telerik:RadToolBarButton Value="gridToolBarButton" CommandName="SearchTextEntered"> <ItemTemplate> <asp:Label ID="lblKeyWord" runat="server" Text="Keyword search:"></asp:Label> <telerik:RadTextBox ID="txtSearchQuery" runat="server" Width="110px" ToolTip="Type to search" /> </ItemTemplate> </telerik:RadToolBarButton> </Items> </telerik:RadToolBar>
Thanks,
Wes