Community
Participate
Working Groups
Hi There is already support for sort indicator for one column. It should be possible to have the same for multi-column sorting. The sorting order must not be visualized in table. This can be done by the otherwise.
Created attachment 36886 [details] Multicolumn sorting example (wihout native indicator support) Visualization of multi column sort indicator not done in table itself. Order of columns in drop-down indicate the sort order.
Not sure what this is. Is it a request for a popup menu?
(In reply to comment #0) No, it has nothing to do with a popup menu. The screen shot is just an example how we visualized the order of the sorting if you have more than one column sorted a the same time. The thougt is that we need an interface on the Table class that looks as follows to support multi column sorting with native sort indicators. <code> public TableColumn[] getSortColumns(); public void setSortDirection(int sortDirection, int columnIndex); public void addSortColumn (TableColumn column); public removeSortColumn (TableColumn column);
Ok, I understand. VI or SSQ, which platform had the restriction that there could only be a single sort column?
(In reply to comment #3) [..] > The thougt is that we need an interface on the Table class that looks as > follows to support multi column sorting with native sort indicators. > > <code> > public TableColumn[] getSortColumns(); > public void setSortDirection(int sortDirection, int columnIndex); > public void addSortColumn (TableColumn column); > public removeSortColumn (TableColumn column); Basically I agree, but I strongly suggest that at least additional a setter void setSortColumns(TableColumn[] columns); is provided. This is much more powerful than add/removeColumn and history shows that usually such a request will follow later. Just have a look at StructuredViewer#setFilters compared to StructuredViewer#addFilter/StructuredViewer#removeFilter.
May I ask if there is any progress on this?