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.

Edit a card

Thread ID:





128910 Feb 15,2017 06:24 AM Feb 16,2017 08:09 AM ASP.NET MVC 1
Tags: Kanban
Asked On February 15, 2017 06:24 AM


how I can have the selected card to update his data with the function updateCard ?

Sarath Kumar P [Syncfusion]
Replied On February 16, 2017 08:09 AM

Hi Cholet, 
Thanks for contacting Syncfusion support. 
You can update selected card with the help of ".e-cardselection" class(added to the selected card) using UpdateCard() method. Refer to the below codes. 
<script type="text/javascript"> 
            function updateSelectedCard(){ 
                var kObj = $("#Kanban").data("ejKanban"), selectedCard, selectedCardData, selectedCardId; 
                //You can get the selected card using ".e-cardselection" class. 
                selectedCard = kObj.element.find('.e-cardselection'); 
                selectedCardId = selectedCard.attr('id'); 
                //get selected card data using getCurrentJsonData() method. 
                selectedCardData = new ej.DataManager(kObj.getCurrentJsonData()).executeLocal(new ej.Query().where(kObj.model.fields.primaryKey, ej.FilterOperators.equal, selectedCardId)); 
                selectedCardData[0].Summary = "Updated data of selected card with id " + selectedCardId; 
                //Update selected card data using updateCard() method. 
                kObj.updateCard(selectedCardId, selectedCardData[0]); 
We have prepared a sample for this. 
Sarath Kumar P.      


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.