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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Edit a card

Thread ID:





128910 Feb 15,2017 11:24 AM UTC Feb 16,2017 01:09 PM UTC ASP.NET MVC 1
Tags: Kanban
Asked On February 15, 2017 11:24 AM UTC


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

Sarath Kumar P [Syncfusion]
Replied On February 16, 2017 01:09 PM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon