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

GridViewCell Adorner issue

2 Answers 180 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Bryan Dyck
Top achievements
Rank 1
Bryan Dyck asked on 10 Jul 2012, 05:57 AM
Hi there

I am currently using the RadGridView to display periodic data with the date in the column header and the value in the cells

see AdornerIssueImage1.png

The ItemsSource for the Grid is bound to a collection of view model objects that are made up of set values (Group and Category) and a collection of values.  The number of values can vary so the columns for the grid are actually set up in the code behind rather than being declaratively defined in the XAML.

Each cell can have a comment associated with it which is represented by a red triangle in the top left corner of the cell. To achieve this  a custom StyleSelector has been created that is assigned to the column CellStyleSelector. In the SelectStyle method a custom adorner is added to the AdornerLayer of the GridViewCell if a comment has been added. (annoyingly the SelectStyle method has to be manually called to get this happen, but that's another discussion).

see AdornerIssueImage2.png

The issue I am having is that if the rows are grouped, and there are comments applied to some of the top rows, and the group is then collapsed then the comment adorner shows in the group header of the group beneath the collapsed group.

see AdornerIssueImage3.png

Do you have any suggestions/thoughts/work arounds on this issue? or do you have a preferred way of generating the same UI.

Any help would be appreciated.

Cheers
                                                                                                    

2 Answers, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 11 Jul 2012, 02:03 PM
Hi Bryan ,

 Would it be possible for you to send us a runnable sample project that reproduces this behavior, so that we can debug it on our side? Thank you in advance.

Greetings,
Ivan Ivanov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Bryan Dyck
Top achievements
Rank 1
answered on 16 Jul 2012, 07:43 AM
Hi Ivan

Thanks for getting back to me and sorry for my sluggish response. I'll try and work up an example and send it through.

Cheers
Tags
GridView
Asked by
Bryan Dyck
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Bryan Dyck
Top achievements
Rank 1
Share this question
or