How to get plain text into toolbar.

5 posts, 0 answers
  1. Louis
    Louis avatar
    23 posts
    Member since:
    Feb 2006

    Posted 06 Jul 2008 Link to this post

    I have a need in a couple of cases to have plain text in the toolbar. For example, our application shows the logged in user's name in the toolbar because that is the best place for it to reside in our application.

    I can obviously include the text content as a button, but I cannot figure out how to prevent the standard button UI modifications from occurring. For example, it doesn't make any sense for the mouse to turn into a hand pointer over this text area and there is no point in highlighting the text area with the hover class.

    I have tried numerous approaches with no luck so far. It seems that a "label" or "non-button" placeholder could be a useful addition to the list of Items.
  2. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 07 Jul 2008 Link to this post

    Hi Karl Costenbader,

    You can check our Templates section.

    I hope this will get you started.

    Kind regards,
    Veskoni
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Louis
    Louis avatar
    23 posts
    Member since:
    Feb 2006

    Posted 07 Jul 2008 Link to this post

    Thank you for the quick response, it looks like ItemTemplates are exactly what I need.

    However, I neglected to mention that we are creating the toolbar items at run time, not design time and it is not clear to me from the documentation how to go about creating a TemplateItem at design time. Given enough time, I am sure I could figure it out, but I am extremely limited on time this week. If you could point me in the direction of some samples on creating ItemTemplates at design I would be very, very happy. This information would also be very useful to add to the documentation.
  5. Louis
    Louis avatar
    23 posts
    Member since:
    Feb 2006

    Posted 07 Jul 2008 Link to this post

    Please disregard my previous request. I discovered that you have to create a class that inherits from System.Web.UI.ITemplate and add the relevant control in an implementation of the InstantiateIn method.

    I still think it would be quite useful to have additional information on this process in the documentation as it is not overly obvious what needs to be done here.
  6. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 08 Jul 2008 Link to this post


    Hi Karl,

    Thanks for your suggestion. We have logged it and we will consider adding content in the documentation to address this case.

    Greetings,
    Peter
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017