Overriding template editing of a Kanban Card

I wish to open up a custom dialog when I double-click on a card.

I added a handler for the DialogOpen event to start a dialog (not Synfusion) but the app still brings up the default edit template for the card.

How do I suppress the default edit dialog?

    <KanbanEvents TValue="ApplicantCard"   DragStart="OnDragStart" DragStop="OnDragStop" DialogOpen="OnDialogOpen"></KanbanEvents>


2 Replies 1 reply marked as answer

WC Woody Chin May 3, 2021 04:56 PM UTC

Accomplished by adding "args.Cancel = true;" 
on DialogOpen and on CardDoubleClick.

Is that the right / best way?



RK Revanth Krishnan Syncfusion Team May 4, 2021 06:22 AM UTC

Hi Woody, 
 
 
Greetings from Syncfusion support. 
 
 
We have validated your query “Need to prevent the default dialog of the card editing in the Kanban. Accomplished by adding "args.Cancel = true;" on DialogOpen and on CardDoubleClick. Is that the right / best way?” 
 
Yes, the default dialog open can be prevented by using the ‘args.cancel = true’ on the ‘DialogOpen’ event. Please check the below documentation for reference, 
 
 
Please check the above documentation and let us know if you need further assistance. 
 
Regards, 
Revanth 


Marked as answer
Loader.
Up arrow icon