Is it possible to add a context menu to a Card?

1 Answer 208 Views
TaskBoard
Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
Martin Hamilton asked on 08 Oct 2021, 04:15 PM

Is there any way we can add a context menu to a card?

It would be nice to be able to be able to right-click on a card and have a context menu so that we can modify portions of the Card. 
E.g.,
Add/Remove User
Update Title
Update Sub Title
Add/Remove Tags

 

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

Nevermind, i think i figured it out... at first I wasn't sure because I didn't see the ContextMenuOpening on the TaskCard Object

    Private Sub CardElement_MouseDown(sender As Object, e As MouseEventArgs)
        Dim clickedElement = RadTaskBoard1.ElementTree.GetElementAtPoint(e.Location)
        If TypeOf clickedElement Is RadTaskCardElement Then
            SetupContextMenu(True)
            cMenu.Show(RadTaskBoard1, e.Location)
        End If
    End Sub

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 11 Oct 2021, 05:51 AM

Hello, Martin ,

It is possible to add a context menu to the RadTaskBoard control in the way you demonstrated. I would recommend you to have a look at the following KB article which refers to an SDK sample showing how to display an edit dialog for modifying the task cards:

https://docs.telerik.com/devtools/winforms/knowledge-base/task-board-edit-dialog 

https://github.com/telerik/winforms-sdk/tree/master/TaskBoard/TaskBoardEditDialog 

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