'Refresh the contents of an SyncfusionChart in runtime
Private Sub RefreshOnLoad_kanban
'clear the contents of the kanban
kanban.clear
'add the columns
kanban.AddColumn("Backlog","Backlog",True,True,True,True,True) ' add a collapsed column
kanban.AddColumn("InProgress,Validate","In Progress or Validate",True,False,True,True,True) ' use two keys in this column
kanban.AddColumn("Debug", "Debug", False,False,True,True,True) ' add a hidden column
kanban.AddColumn("Done", "Done",True,False,True,True,True)
kanban.AddColumn("DragnDrop", "No Drag n Drop",True,False,False,False,True)
'add colors for the types
'for each of the types add the respective color
kanban.AddColor("#cb2027","Bug,Story")
kanban.AddColor("#67ab47","Improvement")
kanban.AddColor("#fbae19", "Epic")
kanban.AddColor("#6a5da8", "Others")
'add the workflows
'add workflows to enable/disable card locations
'kanban.AddWorkFlow("Open","InProgress") ' anything in open can ONLY go to InProgress
'kanban.AddWorkFlow("InProgress","Testing,Close") ' anything in InProgress can go to Testing & Close
kanban.AddResource("Andrew Fuller", "../images/brother.jpg")
kanban.AddResource("Janet", "../images/mom.jpg")
kanban.AddResource("Mashy", "../images/sponge.png")
kanban.AddResource("Yuna", "../images/yuna.jpg")
kanban.AddCard(1, "Backlog", "Analyze the new requirements gathered from the customer.", "Story", "Low", "Analyze,Customer", 3.5, "Andrew Fuller", 1)
kanban.AddCard(2, "InProgress", "Improve application performance", "Improvement", "Normal", "Improvement", 6, "Andrew Fuller", 1)
kanban.AddCard(3, "Backlog", "Arrange a web meeting with the customer to get new requirements.", "Others", "Critical", "Meeting", 5.5, "Yuna", 2)
kanban.AddCard(4, "InProgress", "Fix the issues reported in the IE browser.", "Bug", "Release Breaker", "IE", 2.5, "Janet", 2)
kanban.AddCard(5, "Debug", "Fix the issues reported by the customer.", "Bug", "Low", "Customer", 3.5, "Andrew Fuller", 1)
kanban.AddCard(6, "Done", "Arrange a web meeting with the customer to get the login page requirements.", "Others", "Low", "Meeting", 2, "Janet", 1)
kanban.AddCard(7, "Validate", "Validate new requirements", "Improvement", "Low", "Validation", 1.5, "Janet", 1)
kanban.AddCard(8, "Done", "Login page validation", "Story", "Release Breaker", "Validation,Fix", 2.5, "Andrew Fuller", 2)
kanban.AddCard(9, "Debug", "Fix the issues reported in Safari browser.", "Bug", "Release Breaker", "Fix,Safari", 1.5, "Janet", 2)
kanban.AddCard(10, "Done", "Test the application in the IE browser.", "Story", "Low", "Testing,IE", 5.5, "Andrew Fuller", 3)
kanban.AddCard(11, "DragnDrop", "One cannot drag or drop here", "Story", "Low", "Drag,Drop", 5.5, "Mashy", 3)
kanban.AddCard(12, "InProgress", "Un assigned task", "Story", "Low", "Drag,Drop", 5.5, Null, 3)
'add the filters
'kanban.AddFilter("Closed","Status","Close")
kanban.AddResourceFilters
'kanban.AddStatusFilters
'kanban.AddTypeFilters
'refresh the kanban
kanban.ABMComp.Refresh
End Sub