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

How to get plain text into toolbar.

4 Answers 79 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Louis
Top achievements
Rank 1
Louis asked on 07 Jul 2008, 02:52 AM
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.

4 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 07 Jul 2008, 06:56 AM
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
0
Louis
Top achievements
Rank 1
answered on 07 Jul 2008, 04:55 PM
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.
0
Louis
Top achievements
Rank 1
answered on 07 Jul 2008, 07:28 PM
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.
0
Peter
Telerik team
answered on 08 Jul 2008, 03:20 PM

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
Tags
ToolBar
Asked by
Louis
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Louis
Top achievements
Rank 1
Peter
Telerik team
Share this question
or