Hello,
When I try to reorder cards within the same column in the Kanban control, it doesn't seem to work, although I can move the cards to a different column. Please can you let me know if I can drag and drop cards within the same column?
Many thanks!
|
<div class="col-lg-12 control-section">
<SfKanban KeyField="Status" DataSource="@cardData">
<KanbanColumns>
@foreach (ColumnModel item in columnData)
{
<KanbanColumn HeaderText="@item.HeaderText" KeyField="@item.KeyField"></KanbanColumn>
}
</KanbanColumns>
<KanbanCardSettings HeaderField="Id" ContentField="Summary"></KanbanCardSettings>
<KanbanSortSettings SortBy="@KanbanSortBy" Field="@KanbanField"></KanbanSortSettings>
</SfKanban>
</div>
@code{
public bool isLoadingData { get; set; }
private List<KanbanDataModel> cardData = new KanbanDataModel().GetTasks(); public SortOrderBy KanbanSortBy { get; set; } = SortOrderBy.Index;
public string KanbanField { get; set; } = "Index";
private List<ColumnModel> columnData = new List<ColumnModel>() {
new ColumnModel(){ HeaderText= "To Do", KeyField= new List<string>() { "Open" } },
new ColumnModel(){ HeaderText= "In Progress", KeyField= new List<string>() { "InProgress" } },
new ColumnModel(){ HeaderText= "Testing", KeyField= new List<string>() { "Testing" } },
new ColumnModel(){ HeaderText= "Done", KeyField=new List<string>() { "Close" } }
}; } |
Thank you, the fix in the sample works!