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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Edit a card

Thread ID:

Created:

Updated:

Platform:

Replies:

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

hi,

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. 
 
[KanbanFeatures.cshtml] 
 
<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]); 
            } 
            </script> 
 
We have prepared a sample for this. 
 
 
 
Regards,                
               
Sarath Kumar P.      
 


CONFIRMATION

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.

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

;