How to get the KanbanModel from e.SelectedCard instance?

I would like to know how can I can get or cast the KanbanModel from e.SelectedCard instance in the CardDragEnd event? The e.SelectedCard shows that it is a KanbanCardItem, not KanbalModel. I need to access the card's information like Title, Description, Id, Tags and others. How can I get these information from e.SelectedCard ? 

1 Reply

SG Sridharan Gajendran Syncfusion Team May 25, 2018 07:03 AM UTC

Hi Gangatharan, 

Thanks for contacting Syncfusion Support. 

We can retrieve the information of the Card from the SelectedCard’s Content property in the CardDragEnd event. 

[C#] 
 
        private void Kanban_CardDragEnd(object sender, KanbanDragEndEventArgs e) 
        { 
            KanbanModel kanbanModel = e.SelectedCard.Content as KanbanModel; 
        } 

Regards, 
Sridharan 


Loader.
Up arrow icon