Kanban questions: list order / modal dialog / etc

Some assorted questions arising from my evaluation, that I can’t find reference in the docs. Very grateful for all your feedback.

  1. Can I reference / set the order a particular item appears in a kanban list? For example, if I want to sort the items by some criteria, how do I programatically set the order index?

  2. The last column has an arrow right >, while all other lists have <. Is there a reason for this, and is it configurable?

  3. The documentation states that webix.confirm() is modal, but when I try to use it in onListBeforeDrop - so I can ask the user if they want to allow this move or not - it does not behave modally, and the item drops already. See: http://webix.com/snippet/20159b63

Well, it can be done using the native javascript confirm() function - but that looks ugly.

Are you able to help with the first two questions too?

thanks

(3) The confirm box blocks the page and prevents any mouse interactions. There is no way to achieve the full modality ( blocking the execution thread ) in javascript.

  1. There is not built-in sorting in kanbanlist. You need to use order in data source before they are loaded.

  2. The arrow shows the direction the last column collapse. You can change the direction in which the column is collapsed.

Here is the demo with modified direction:

http://webix.com/snippet/4ff605e9

Thanks for this, but I’m a little confused regarding the order of items.

You can re-order items in a kanban list interactively, so presumably the items must have some property to say what order they appear in the list? If so, is this index not accessible and settable? If not, how does the interactive re-ordering manage it?

Hi,

You can try to apply $sort scheme to Kanban (not to kanbanlist):

http://webix.com/snippet/daf70c09

Here is the documentation on $sort scheme:

http://docs.webix.com/desktop__data_scheme.html#sortkey

This is only assigning a sort order at the initial load, right?

So there is no way to do the following…?

  • keep an item at the top or bottom of a list.
  • know what position in a list an item occupies
  • move an item to a different position in the list (it seems strange that you can’t do this programmatically, when you can do it interactively??!)

There is an API for getting item position and API for moving data item

The only problematic point is keeping item at the top or at the bottom of a list, it can be done as well, but will require quite complicated event handling.

If you have a support subscription, please contact us at support@webix.com we will provide a demo.

OK, perfect. I don’t have support subscription at the moment as I am evaluating webix. So I just need to know that this is possible. I will be purchasing Pro verison and support very soon! thanks.