Menu

#119 Sorting of non groupable columns does not work when one column is groupable

C#_v2.7
wont-fix
None
1
2014-09-29
2014-06-14
Nanuit
No

I have the situation that i have one groupable column and several non groupable.

clicking on the groupable column sorts all the entries according to sortorder.
clicking one of the nongroupable columns does no sorting.

debugging the problem lead me to the line causing the problem:
When i change in ObjectListView.cs at line 3658 from

OLVColumn sortColumn = parms.SortItemsByPrimaryColumn ? parms.ListView.GetColumn(0) : parms.PrimarySort;
to
OLVColumn sortColumn = parms.SortItemsByPrimaryColumn ? parms.PrimarySort : parms.ListView.GetColumn(0);

the sorting works.

I have tested this solution with non groupable and different combinations of groupable colums and it workes every time

Discussion

  • Phillip Piper

    Phillip Piper - 2014-09-29
    • status: open --> wont-fix
    • assigned_to: Phillip Piper
     
  • Phillip Piper

    Phillip Piper - 2014-09-29

    I can't reproduce this behaviour, but this functional area's implementation has changed from v2.7 to v2.8, so it could have been the previous behaviour, but is no longer.

     

Log in to post a comment.