[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> |