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

Label on a ToolBar

2 Answers 162 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Stuart Hemming
Top achievements
Rank 2
Stuart Hemming asked on 18 Sep 2009, 02:19 PM
I want to put a label on a toolbar.

I  tried adding a button and disabling it (so the user couldn't click on it) but it looks deadful ('cos of what IE does to the text when the object's been disabled).

Can anyone think of a way of adding a bog-standard asp:Label to a toolbar that doesn't cause any toolbar events?

--
Stuart

2 Answers, 1 is accepted

Sort by
0
Kamen Bundev
Telerik team
answered on 18 Sep 2009, 03:33 PM
Hello Stuart,

You can add another control on the RadToolBar using templates. Check this example or directly use like this:
<telerik:RadToolBar runat="server" ID="Toolbar">
    <Items>
        <telerik:RadToolBarButton Text="Test 1" />
        <telerik:RadToolBarButton>
            <ItemTemplate>
                <asp:Label runat="server" Text="Label"></asp:Label>
            </ItemTemplate>
        </telerik:RadToolBarButton>
        <telerik:RadToolBarButton Text="Test 3" />
    </Items>
</telerik:RadToolBar>


Regards,
Kamen Bundev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Stuart Hemming
Top achievements
Rank 2
answered on 18 Sep 2009, 03:41 PM
Kamen

Thanks for that.

Cool. I expected that to give me a clickable button.

Thanks.

--
Stuart
Tags
ToolBar
Asked by
Stuart Hemming
Top achievements
Rank 2
Answers by
Kamen Bundev
Telerik team
Stuart Hemming
Top achievements
Rank 2
Share this question
or