Label on a ToolBar

3 posts, 0 answers
  1. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 18 Sep 2009 Link to this post

    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. Kamen Bundev
    Admin
    Kamen Bundev avatar
    1532 posts

    Posted 18 Sep 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 18 Sep 2009 Link to this post

    Kamen

    Thanks for that.

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

    Thanks.

    --
    Stuart
Back to Top