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

Expand / Collapse of GroupDescriptor results in data desync

2 Answers 30 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 17 Aug 2018, 08:53 PM

1) Populate GridView with an aggregate observable collection. (Content of this aggregation is correct / what I want, confirmed at every step.)

2) Expand one or more of properly displayed group headers.

3) Collapse same group(s).

Result:

Items that I have manipulated* remain present in the list below both groups. (Somehow not being grouped under the only two possible groups. (The descriptor is not hard coded, and should create new groups at runtime if data was different.)

 

* These customized items are modified before the GridView gets them, and not while the grid view is active. Modification includes recreating the item received from another observable collection by intercepting the modification callback. However, both the complete destruction approach and replace approach result in the same issue. (In the aggregate collection.)

 

Could this issue be related to a poorly implemented Equals, GetHashCode, or CompareTo function? I am trying to use Telerik raw instead of doing over engineered complicated things, as attempts I've made in the past result in very bad performance.

 

Thanks,

2 Answers, 1 is accepted

Sort by
0
Adam
Top achievements
Rank 1
answered on 21 Aug 2018, 05:08 PM
I had an edit mode tag on my template selector for the elements that were getting stuck. Uhg.
0
Stefan
Telerik team
answered on 22 Aug 2018, 09:55 AM
Hello Adam,

The behavior you are experiencing sounds quite strange. When RadGridView is grouped its Items collection would actually be the grouped items. It seems that the approach you are using is breaking the grouping of the control and I cannot confirm the exact cause for this. However, based on your second post I am not completely sure whether you are still experiencing this behavior or not. Can you please clarify?

Regards,
Stefan
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GridView
Asked by
Adam
Top achievements
Rank 1
Answers by
Adam
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or