Declined
Last Updated: 12 Feb 2018 15:40 by ADMIN
Aleksandar
Created on: 21 Nov 2017 20:21
Category: GridView
Type: Bug Report
1
Sort indicator does not display properly when the SortMemberPath is different from the DataMemberBinding
When RadGridView is bound to a ListCollectionView and the SortDescriptions are set, columns with a SortMemberPath different from the DataMemberBinding don't display the sort indicator in the column header.

In the attached example the "Status" and "ETA" columns are sorted. "Status" header does not display the indicator due to the SortMemberPath being different from the DataMemberBinding.
Attached Files:
6 comments
ADMIN
Stefan
Posted on: 12 Feb 2018 15:40
Hi Aleksandar, 

I will proceed with setting the status of this item to Declined. Of course, if you have any concerns or any other assistance is needed, feel free to open a new support thread.

All the best,
Stefan
ADMIN
Stefan
Posted on: 24 Jan 2018 15:25
Hello Aleksandar,

I might be missing something. In case you add a SortDescription in the ICollectionView for the StadiumCapacity property, you are sorting the "StadiumCapacity" column. This is irrelevant to whether some of the other columns has its SortMemberPath set to point to the StadiumCapacity property. On the other hand, when you sort another column that has its SortMemberPath set, you are basically telling this exact column to be sorted by another property. This is the expected behavior. From what I understand from your posts, you expect the inverted behavior, i.e. all columns that have their SortMemberPath pointing to the StadiumCapacity to reflect in the UI when a "StadiumCapacity SortDescription" is added. Note, that such behavior would not be possible to achieve.

Regards,
Stefan
Aleksandar
Posted on: 23 Jan 2018 21:02
That doesn't make any sense. If you sort by the first column SortMember path, then the sort indicator should appear for the first column; but it does not. This isn't a problem with other first part and third party data grid components. They all use the SortMember path to display the sort indicator.
ADMIN
Stefan
Posted on: 23 Jan 2018 15:57
Hi Aleksandar,

Thank you for this clarification. 

This would actually be the expected behavior. The SortMemberPath is intended to alter the default sorting only when the actual column is sorted. In other words said, it works only when the grid is sorted over the column on which the SortMemberPath is applied to. In this case this would be the first column. 

Hopefully, this clarifies your concerns.
Stefan
Aleksandar
Posted on: 16 Jan 2018 20:46
No problem... In MyViewModel line 32, change the Sort Description from "Established" to "StadiumCapacity" and run the example. The first grid column has SortMemberPath set to "StadiumCapacity". Therefore, the sort indicator should appear in the first column header when the sort is applied programmatically. However, the column header doesn't display the the sort indicator until you actually click the column header. 
ADMIN
Stefan
Posted on: 16 Jan 2018 16:02
Hello Aleksandar,

Firstly, thank you for your patience. We were on a tight schedule due to the upcoming release, so please excuse us for the delayed reply. 

I tested the behavior of the control and was not able to replicate such malfunction. Attached to my post you can find the sample application I used for testing. Can you please clarify how exactly is the problem reproduced? Am I missing something?

Thanks in advance for your cooperation.
Stefan
Attached Files: