TaskBoardColumnCollapsing, TaskBoardColumnCollapsed

1 Answer 68 Views
TaskBoard
Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
Martin Hamilton asked on 11 Oct 2021, 04:57 PM

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?

Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
commented on 11 Oct 2021, 04:59 PM

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....

Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
commented on 12 Oct 2021, 11:25 AM

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

 

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 14 Oct 2021, 07:52 AM
Hello, Martin,

These events are available at RadTaskBoardColumnElement level. Please refer to the following code snippet:
        For Each columnElement As RadTaskBoardColumnElement In Me.RadTaskBoard1.Columns
            AddHandler columnElement.IsCollapsedChanging, AddressOf columnElement_IsCollapsedChanging
            AddHandler columnElement.IsCollapsedChanged, AddressOf columnElement_IsCollapsedChanged
        Next


    Private Sub columnElement_IsCollapsedChanged(sender As Object, e As EventArgs)

    End Sub

    Private Sub columnElement_IsCollapsedChanging(sender As Object, e As CancelEventArgs)

    End Sub

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Remote troubleshooting is now easier with Telerik Fiddler Jam. Get the full context to end-users' issues in just three steps! Start your trial here - https://www.telerik.com/fiddler-jam.
Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
commented on 14 Oct 2021, 04:01 PM

Dess, You're Awesome!  Thank you - works perfectly
Tags
TaskBoard
Asked by
Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or