Hey DX
I need some assistance and apologize if this has been posted before, but i have not found a suitable answer.
I have some data showing on the Kanban Tile View.
Each card has a priority linked to an enum
C#public enum Priority
{
High = 1,
Medium = 2,
Low = 3
}
When looking at the kanban view, i need all cards with a 'High' priority to appear at the top of kanban view. This is easily accomplished by sorting ascending on the priority column in the view.
However the kanban view creates the 3 groups from left to right the same way,
So High | Medium | Low, when in fact i actually want the kanban view columns to be from left to right : Low | Medium | High, while at the same time having the high priority cards at the top.
Thanks
Hello,
Are you using your Priority column as a group column? If so, you can reorder groups if you set the column's SortOrder property to a required value.
However, it is not clear what you mean by "having the high priority cards at the top". Do you need to reorder cards inside each group as well? If so, please clarify how you determine what cards should be on top when they have the equal Priority value.
It would help if you provide a couple of screenshots to demonstrate the current and required behavior. Also, please clarify if your cards can be moved.
I look forward to your response.
Hey,
So i have this setup in my designer for the priority column.
The sort mode is set to Value, Ascending
// // tcWorkflowPriority // this.tcWorkflowPriority.Caption = "Priority"; this.tcWorkflowPriority.FieldName = "Program.WorkflowPriorityId"; this.tcWorkflowPriority.FieldNameSortGroup = "Program.WorkflowPriorityId"; this.tcWorkflowPriority.Name = "tcWorkflowPriority"; this.tcWorkflowPriority.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.True; this.tcWorkflowPriority.SortMode = DevExpress.XtraGrid.ColumnSortMode.Value; this.tcWorkflowPriority.Visible = true; this.tcWorkflowPriority.VisibleIndex = 1;
This means that all the data in my kanban view is being sorted by Priority : First High, then medium, then low.
Which is what i want, as the cards are appearing in my view with all the High priority cards at the top of the view.
See (1) in cards1.png attachment. The cards with higher priorities are appearing at the top of each of their current kanban groups.
However at runtime i am able to change the groupcolumn to the priority column itself.
This means i now get 3 vertical kanban groups for all my cards as well :
However, since the sort on this column is Ascending, my 3 vertical groups are in the order of the enum : High | Medium | Low
See (2) in card1.png attachment.
I actually want the group order for that column to be reversed, Low | Medium | High
So i think what im asking for is a way to sort the vertical kanban groups, independantly from the data in each column.