Hi Jose Vicente,
You have to initialize the columns for Kanban control either by enabling the AutoGenerateColumns as true or define your own column structure using KanbanColumn.
Solution 1: When setting the AutoGenerateColumns to true, columns are generated depending on ColumnMappingPath property and ItemsSource collection. By default, AutoGenerateColumns is false.
|
SfKanban kanban = new SfKanban(this);
SetContentView(kanban);
kanban.ItemsSource = ItemsSourceCards();
kanban.AutoGenerateColumns = true;
kanban.ColumnMappingPath = "Category"; |
Solution 2: You can define the own column structure using KanbanColumn and add into the Columns property of SfKanban as per below code example.
|
kanban.ColumnMappingPath = "Category";
KanbanColumn openColumn = new KanbanColumn(this);
openColumn.Title = "To Do";
openColumn.Categories = new List<object>() { "Open" };
kanban.Columns.Add(openColumn);
KanbanColumn progressColumn = new KanbanColumn(this);
progressColumn.Title = "In Progress";
progressColumn.Categories = new List<object>() { "In Progress" };
kanban.Columns.Add(progressColumn);
KanbanColumn codeColumn = new KanbanColumn(this);
codeColumn.Title = "Code Review";
codeColumn.Categories = new List<object>() { "Code Review" };
kanban.Columns.Add(codeColumn);
KanbanColumn doneColumn = new KanbanColumn(this);
doneColumn.Title = "Done";
doneColumn.Categories = new List<object>() { "Done" };
kanban.Columns.Add(doneColumn); |
Also, we have attached the sample for your reference. Please find the sample from the below link.
Output:
For more details, please refer the below link
Regards,
Yuvaraj.