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

[Solved] Coloring a group selection on chats tooltip

1 Answer 48 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michele
Top achievements
Rank 2
Michele asked on 07 Jul 2009, 02:09 PM
Hello (I write more here then to my parents!),
I wish to color the grouping of a gridview or it's row content as I pass on the portion of a PIE, is it possible?
I've just considered of passing the args from the usercontrol that contains the pie to the controls that contains the grid, but how can I paint it?
Thanks in advance

Paolo

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 08 Jul 2009, 12:57 PM
Hi Paolo,

As far as I can understand you would like to color a certain row based on its value. If that is the case, you can attach to the RowLoaded event of the grid, check whatever you want from the row and paint it in the color that you desire. Something like this:

        static void OnRowLoaded(object sender, Telerik.Windows.Controls.GridView.RowLoadedEventArgs e)
        {
            Message message = e.DataElement as Message;
            if (message.Size > 100)
            {
                e.Row.Background = new SolidColorBrush(Colors.Red);
            }
            //....here Message is my business object
        }

If that is not the case, could you elaborate in greater detail on your goals and send us a simplified sample project without the chart (use some mock class instead of the chart).

Kind regards,
Ross
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Michele
Top achievements
Rank 2
Answers by
Rossen Hristov
Telerik team
Share this question
or