Drag drop Event and Popup Save Click Event

Hi Team,

I was going thought the kanban document. I didnot get the event for Drag drop Event and Popup Save Click Event. My requirement is, if i will do drag and drop in kanban, It should be update in database. 

if change the status on Popup window and click on save button, It should save in database.

Could you please give the syntax for triggering that event ?


Regards
Chandradev

3 Replies 1 reply marked as answer

RK Revanth Krishnan Syncfusion Team April 9, 2021 11:31 AM UTC

Hi Chandradev, 
 
 
Greetings from Syncfusion support. 
 
 
We have validated your query “My requirement is, to trigger the drag and drop and popup save button event. Can you please give the syntax for triggering that event?” 
 
This can be achieved using the ‘DragStop’ and ‘DialogClose’ event. We have prepared a sample for your reference, 
 
Code Snippet: 
 
<SfKanban TValue="TasksModel" KeyField="Status" DataSource="Tasks" Width="100%" Height="85vh"> 
    <KanbanEvents TValue="TasksModel" DragStop="@dragStopEventHandler" DialogClose="@dialogCloseEventHandler"></KanbanEvents> 
</SfKanban> 
 
@code { 
    . . . 
    . . . 
    public void dragStopEventHandler(DragEventArgs<TasksModel> args) 
    { 
    } 
 
    public void dialogCloseEventHandler(DialogCloseEventArgs<TasksModel> args) 
    { 
    } 
} 
 
 
Please check the above code snippet and the sample and let us know if it satisfies your requirement. 
 
Regards, 
Revanth 


Marked as answer

CH chandradev April 9, 2021 12:28 PM UTC

Hi Revanth ,

Thanks for sharing the exact code snippet. It is working as expected.


IS Indrajith Srinivasan Syncfusion Team April 12, 2021 06:29 AM UTC

Hi Chandradev,

Welcome,

Please get back to us, if you need any further assistance.

Regards,
Indrajith



Loader.
Up arrow icon