I have a RadToolBar with 3 buttons. The first to are standard buttons while the last one has an ItemTemplate. The item template has a combo box in it. Now the problem I found is that the combo box is always disabled. The only solution I found was to add an empty ToolBarButton to the end.
Here is my code
<telerik:RadToolBar runat="server" ID="TSiToolBar1"Width="100%" BorderWidth="2" BorderColor="#E5E5E5"
OnClientButtonClicked="OnFormulaToolBarButtonClicked">
<Items>
<telerik:RadToolBarButton runat="server" Text="Create" />
<telerik:RadToolBarButton runat="server" IsSeparator="true" />
<telerik:RadToolBarButton runat="server" Text="Copy" />
<telerik:RadToolBarButton runat="server" IsSeparator="true" />
<telerik:RadToolBarButton runat="server" Value="FormulaComboBoxToolBarButton">
<ItemTemplate>
<div style="padding-left: 6px;">
<telerik:RadCombobox runat="server" ID="CopyFormulaComboBox" Width="200" AutoPostBack="true"
OnSelectedIndexChanged="UseExistingComboBox_SelectedIndexChanged" />
</div>
</ItemTemplate>
</telerik:RadToolBarButton>
<telerik:RadToolBarButton runat="server">
</telerik:RadToolBarButton>
</Items>
</telerik:RadToolBar>
The last empty toolBarButton is there only to make the combobox enabled
Here is my code
<telerik:RadToolBar runat="server" ID="TSiToolBar1"Width="100%" BorderWidth="2" BorderColor="#E5E5E5"
OnClientButtonClicked="OnFormulaToolBarButtonClicked">
<Items>
<telerik:RadToolBarButton runat="server" Text="Create" />
<telerik:RadToolBarButton runat="server" IsSeparator="true" />
<telerik:RadToolBarButton runat="server" Text="Copy" />
<telerik:RadToolBarButton runat="server" IsSeparator="true" />
<telerik:RadToolBarButton runat="server" Value="FormulaComboBoxToolBarButton">
<ItemTemplate>
<div style="padding-left: 6px;">
<telerik:RadCombobox runat="server" ID="CopyFormulaComboBox" Width="200" AutoPostBack="true"
OnSelectedIndexChanged="UseExistingComboBox_SelectedIndexChanged" />
</div>
</ItemTemplate>
</telerik:RadToolBarButton>
<telerik:RadToolBarButton runat="server">
</telerik:RadToolBarButton>
</Items>
</telerik:RadToolBar>
The last empty toolBarButton is there only to make the combobox enabled