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.

Block drop in certain swim lanes

Thread ID:

Created:

Updated:

Platform:

Replies:

126125 Sep 26,2016 05:09 AM Sep 30,2016 12:35 AM JavaScript 5
loading
Tags: ejKanban
Trevor
Asked On September 26, 2016 05:09 AM

Hi,

If i have the following swim lanes

Open
Started
Paused
Closed

How can I prevent certain operations while allowing others e.g

I can drag from open to Started
I can  drag from Started to Paused or closed
I want to prevent drag from Started, or Paused to Open.

Is this possible and if so could you please provide some guidance.

TIA
Trevor

Sarath Kumar P [Syncfusion]
Replied On September 27, 2016 09:26 AM

Hi Trevor, 
 
Thank you for contacting Syncfusion support.   
   
Please confirm us whether you need to prevent drag operations between Kanban columns.   
 
-                      Between vertical columns ( eg . from Open to Started ) 
 
 
 
Or Kanban Swim-lanes  - drag and drop between highlighted horizontal lanes? ( eg . from Open to Started ) 


 

Based on your confirmation, we will provide you the appropriate solution. 
Regards, 
Sarath Kumar P 


Trevor
Replied On September 28, 2016 08:09 AM

Sorry, yes indeed it is between the vertical columns I wish to block certain drag/drops.

TIA
Trevor

Rajesh Kumar Anburajan [Syncfusion]
Replied On September 29, 2016 06:49 AM

Hi Trevor,   
    
Your requirement can be achieved using Kanban workflow feature. It has been included in our latest Volume 3, 2016 release and it is available for download under the following link:   
                    
  
Using workflow feature, you can specify the allowed transitions to each key columns. Please refer to the attached sample and the below codes to achieve your requirement,   
  
[Kanban.html]   
   
$("#Kanban").ejKanban(   
                {   
                    dataSource: data,   
                                    workflows:[   
                                    {key:"Open",allowedTransitions:"Started"},  // you can drag from open to started by adding the started column in allowTransitions property.     
                                    {key:"Started",allowedTransitions:"Paused,Closed"},//you can drag from started to paused or closed by adding the Paused or closed column in allowTransitions property.     
                                    {key:"Paused",allowedTransitions:"Started,Closed"}//you can prevent drag from started, or paused to open.   
                                    ],   
                    columns: [   
                        { headerText: "Open", key: "Open"},   
                        { headerText: "Started", key: "Started" },   
                        { headerText: "Paused", key: "Paused" },   
                        { headerText: "Closed", key: "Closed" }   
   
                    ],   
                    keyField: "Status",   
                    allowTitle: true,   
                    fields: {   
                        content: "Summary",   
                        primaryKey: "Id",   
                        tag: 'Priority'   
                    },   
                    allowSelection: false   
                });   
  
Regards,   
Rajesh kumar A.   


Trevor
Replied On September 29, 2016 07:07 AM

Thanks for you help.

much appreciated.

Regards
Trevor

Rajesh Kumar Anburajan [Syncfusion]
Replied On September 30, 2016 12:35 AM

 Hi Trevor,


Thanks for your update.


Please let us know if u need any further assistance.


Regards,

Rajeshkumar A.
 


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.

;