It would be nice if we had 2 more events on the columns as well
TaskBoardColumnCollapsing, TaskBoardColumnCollapsed
These would be necessary when the control is database driven since the TaskBoardColumnCollapsed would trigger a database update for the TaskBoardColumns Table.
If it's already there... can you tell me how I can access that event?
The reason I'm finding a lot of these 'things' is because I have already converted the 'example code' into a relational database structure.
And as I'm working with the control - I'm getting stuck with trying to find the events that would trigger a database update.
Sorry, I'm not trying to be a pain....
To provide an example of the point I'm trying to make here.... I will provide the database schema for the table that I created for the Columns.
SELECT TOP (1000) [id]
,[Title]
,[Subtitle]
,[Collapsed]
,[OrderSequence]
FROM [TaskBoard].[dbo].[TaskBoardColumnElements]
This is probably not the best name for the event - but it gives you the idea of what I'm looking to do.
Without such an event, we're not able to detect a change to the Collapsed State hence not able to update the database table accordingly.
The Event for the TaskBoardColumnCollapsed would be something like this;
Private Sub radTaskBoard1_TaskBoardColumnCollapsed()
Dim SQL As String = ""
Dim ColumnID As Integer = targetColumnElement.Tag 'The TaskBoardColumnElements.id of the target column
SQL = $"Update TaskBoardColumnElements SET Collapsed = {IIf(oRadColumn.IsCollapsed, 1, 0)} WHERE id = {TaskBoardColumnID}"
End Sub