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. Image for the cookie policy date

Swimlane Order

How can I make it swimlane(date) order descending 

1 Reply

BS Buvana Sathasivam Syncfusion Team August 29, 2017 04:43 PM UTC

 
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. 
 


Loader.
Up arrow icon