-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Built-in native multi-column sort support #441
Comments
From joachim....@gmail.com on June 24, 2014 14:10:10 One usually implements the OnCompare event to achieve multi column sorting. I'm not sure if this enhancement is of general interest. In case there is a method you need virtual protected to apply this enhancement in your own derived clas, and it is not virtual protected, let us know. Labels: -Type-Defect -Priority-Medium Type-Enhancement Priority-Low |
From gmnev...@gmail.com on June 26, 2014 02:12:18 This is what I get from my enhancement (see picture). Attachment: vts_multi_column_sort.jpg |
From fr0st.br...@gmail.com on November 18, 2014 03:46:22 Amazing for complex grid-like cases. IMHO worths to be included in the source, at least as demo or special derived class. |
Hello. can i have a code VirtualTrees541mod.zip? |
Hi, it was 7 years ago, when I did this mod, but You are lucky that I have backup of this archive. |
thanks |
Here's some new entry which might be related to this one: #1037 |
There is no need for this in my mod, because there is property TVirtualTreeColumn.SortEnabled, which is doing exactly what this sdNone would do. And even more, You do not loose last used sort direction for the column if You do it by using two properties. |
Ok, I didn't knew TVirtualTreeColumn.SortEnabled yet. In which version is this? I still have 7.2 installed and cannot find it there. |
v5.4.1, maybe it was dropped somewhere along the road, I will look into latest sources and compare this. |
Ok, I think that I added this properties to TVirtualTreeColumn because TVTHeader includes SortColumn and SortDirection properties, so to be able to sort multiple columns, You need to have this properties for each column, not for whole header only. but to be backward compatilble You need to have both. |
From gmnev...@gmail.com on June 23, 2014 18:38:39
Currently there is one-column sort support.
Which is ok, but there are several situtations where more than one-column sort is needed.
Googling for alternative returns one solution, but unfortunately it is not working like it suppose to.
I have implemented built-in native multi-column sort soluton to version 5.4.1.
It adds/extends design-time and run-time ability to sort selected columns in pre/post build time.
There is possibility to add/decrese number of sorted columns or rearange order in run-time.
Major changes are:
I attached sources in this issue.
I hope to apply this mod in vst sources.
Thank you,
NevTon.
Attachment: VirtualTrees541mod.zip
Original issue: http://code.google.com/p/virtual-treeview/issues/detail?id=441
The text was updated successfully, but these errors were encountered: