RadToolbarButton with ItemTemplate is disabled when Last Item

2 posts, 0 answers
  1. TripDev
    TripDev avatar
    3 posts
    Member since:
    Jul 2012

    Posted 13 Dec 2013 Link to this post

    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
  2. Nencho
    Admin
    Nencho avatar
    1458 posts

    Posted 18 Dec 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top