We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Get Primary Key of Selected Card

Thread ID:





129621 Mar 25,2017 10:10 AM Mar 28,2017 03:27 AM JavaScript 3
Tags: ejKanban
Asked On March 25, 2017 10:10 AM


First, let me say I love Syncfusion!  
I am having trouble retrieving the primary key of a card after selecting it.  So far, I have mapped the "primaryKey" field setting to the primary key in the datasource.  I also analyzed the "cardClick" and "cardSelect" events, but I'm not seeing the data being passed anywhere in the "args" parameter.  
Is there a way I can get the primary key of the card in javascript after I select the card?

Thank you!

Buvana Sathasivam [Syncfusion]
Replied On March 27, 2017 05:56 AM

Hi Tim Soderstrom, 

Thanks for using Syncfusion product. 

We had prepared Kanban sample with “Get primary key of the Selected Card”.  If you are select the card, the alert box was shown with primary key value of the selected card.  Please refer the below code and JS playground. 

              cardSelect: "cardSelect",   // Card select event 
        function cardSelect(args){        // Call when card is select 
             var primaryKeyValue = args.data[0][args.model.fields.primaryKey]; // Get primary key value of selected card 
            alert("Primay Key Value of Selected Card: " + primaryKeyValue );  

Please let us know if you have any queries. 

Buvana S. 

Replied On March 27, 2017 03:12 PM

That worked!  Thank you for your help.

Buvana Sathasivam [Syncfusion]
Replied On March 28, 2017 03:27 AM

Hi Tim Soderstrom,  

Thanks for your update.  Let us know if you have any queries, we would be happy to assist you. 

Buvana S. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.