allow user to arrange order of items in drawer

1 Answer 155 Views
Drawer
Vedad
Top achievements
Rank 3
Bronze
Bronze
Iron
Vedad asked on 15 Oct 2021, 07:02 PM

Hi,

I would like to try to allow my users to change order of the items displayed in drawer component with hierarchy.

In my drawer, parents are "containers" and i would like to allow user to move items from one to another parent.

For example from global items to personal or favorite items.

Is it possible to do something without much of changes?

Thank you very much.

Vedad

1 Answer, 1 is accepted

Sort by
0
Martin Bechev
Telerik team
answered on 20 Oct 2021, 07:15 AM

Hello Vedad,

I am afraid that the Kendo UI for Angular Drawer component does not support reordering functionality nor hierarchical binding out of the bow.

The hierarchical structure of the Drawer is represented by a flat collection indeed where some of the items are 'nested' with CSS.

As for the item reordering, there is no straightforward approach that I could suggest to achieve the desired functionality. In theory, the HTML Drag and Drop API could be used for that purpose, but then the developer should be responsible for every collection change, like inserting or popping specific items from the Drawer items array and for each user interaction like dragStart, dragOver, drop, and etc.

As a side note, I want to mention that the suggested API is an essential part of some of our demos like drag and drop between Grids (article) and drag and drop in TreeList (article) which can be used as an example when implementing Drawer reordering.

Regards,
Martin
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Drawer
Asked by
Vedad
Top achievements
Rank 3
Bronze
Bronze
Iron
Answers by
Martin Bechev
Telerik team
Share this question
or