Tooltip indicator on cell

6 posts, 0 answers
  1. Eduan Marais
    Eduan Marais avatar
    18 posts
    Member since:
    Feb 2010

    Posted 08 Jul 2010 Link to this post

    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?
  2. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 08 Jul 2010 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Eduan Marais
    Eduan Marais avatar
    18 posts
    Member since:
    Feb 2010

    Posted 08 Jul 2010 Link to this post

    Hi Pavel.,

    Do you perhaps have a wpf example?
    Also. Any way to do it in code, not in the xaml?
  5. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 08 Jul 2010 Link to this post

    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
  6. Eduan Marais
    Eduan Marais avatar
    18 posts
    Member since:
    Feb 2010

    Posted 08 Jul 2010 Link to this post

    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
  7. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 08 Jul 2010 Link to this post

    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
Back to Top
UI for WPF is Visual Studio 2017 Ready