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

Tooltip indicator on cell

5 Answers 158 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Eduan Marais
Top achievements
Rank 2
Eduan Marais asked on 08 Jul 2010, 11:35 AM
Hi.

When you add a comment to a cell in MS Excel, you get a red triangle in the right top corner of the cell.
I would like to do the same on my grid. I have added the tooltip to the cell, but I would like the indicator that there is a comment on the cell.

Any ideas?

5 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 08 Jul 2010, 11:47 AM
Hi Eduan Marais,

The sample app attached demonstrates how to achieve that.

Greetings,
Pavel Pavlov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Eduan Marais
Top achievements
Rank 2
answered on 08 Jul 2010, 12:23 PM
Hi Pavel.,

Do you perhaps have a wpf example?
Also. Any way to do it in code, not in the xaml?
0
Pavel Pavlov
Telerik team
answered on 08 Jul 2010, 12:35 PM
Hi Eduan Marais,

RadGridView for Silverlight and RadGridView for WPF share a common codebase  and this approach is 100% applicable for WPF. With some copy/paste you should be able to make it work in WPF.

Although there is a way to do it in code , I would strongly not recommend it.

Greetings,
Pavel Pavlov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Eduan Marais
Top achievements
Rank 2
answered on 08 Jul 2010, 01:17 PM
Hi.

Surely it must be safe to do it in code. In my case, I need to build the grid in code, as the content and layout is not fixed - it is populated in runtime.

In my xaml, I create a tabpage, and thats it. Only if the user request data in a grid do I create a grid and populate it - all of it needs to happen in code, I cant create it in the xaml. So I need to create the template that creates the red square in code, I have no choice.
I was hoping for a property to show the square - maybe a add on in a future release?

Thanks for your example though, it works really well.

Eduan
0
Pavel Pavlov
Telerik team
answered on 08 Jul 2010, 02:48 PM
Hello Eduan Marais,

Ok , the  most common way of creating templates in code behind is described in this thread .

Kind regards,
Pavel Pavlov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Eduan Marais
Top achievements
Rank 2
Answers by
Pavel Pavlov
Telerik team
Eduan Marais
Top achievements
Rank 2
Share this question
or