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

RadToolbarButton with ItemTemplate is disabled when Last Item

1 Answer 48 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
TripDev
Top achievements
Rank 2
TripDev asked on 13 Dec 2013, 03:08 PM
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

1 Answer, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 18 Dec 2013, 12:07 PM
Hello,

I tired to replicate the described issue, but to no avail. Here is a video, demonstrating the behavior at my end. Would you specify under which browser you had encountered the issue and the currently used version of our controls?

Regards,
Nencho
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
ToolBar
Asked by
TripDev
Top achievements
Rank 2
Answers by
Nencho
Telerik team
Share this question
or