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.

Swimlane Order

Thread ID:

Created:

Updated:

Platform:

Replies:

132349 Aug 28,2017 03:44 AM Aug 29,2017 12:43 PM ASP.NET MVC 1
loading
Tags: Kanban
Musab Adnan Basheer
Asked On August 28, 2017 03:44 AM

How can I make it swimlane(date) order descending 

Buvana Sathasivam [Syncfusion]
Replied On August 29, 2017 12:43 PM

 
Hi Musab Adnan Basheer, 
  
Thanks for using Syncfusion Products. 
  
Currently we don’t have option to sort swimlane in descending order.  We have already added “Swimlane sorting for Unassigned group” to our feature request list, and it can be tracked through our Features Management System:

https://syncfusion.atlassian.net/browse/JS-43418 
 
  
But we have achieved your requirement as a workaround solution by using “create” event. In this event, you can able to passed swimlaneKey into Kanban query and refresh the Kanban control.  Please refer to the below code sample. 
  
KanbanFeatures.cshtml 
  
@(Html.EJ().Kanban("Kanban") 
     …………. 
        .ClientSideEvents(eve => eve.Create("create"))  // Create event 
)    
  
  
KanbanFeatures.cshtml 
  
<script> 
    function create(args) { 
        var obj = $("#Kanban").data("ejKanban"); // Create Kanban object 
        obj.model.query.sortByDesc(obj.model.fields.swimlaneKey); // Descending query  
        obj.refresh();  // Refresh Kanban control 
    } 
</script> 
  
  
To know more about the ejQuery members.  Please refer the below reference 
API links:  
  
  
For your convenience, we have prepared the simple sample with your requirement. Please the playground link on below. 
  
  
  
Regards, 
Buvana S. 
 


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.

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.

;