This is a migrated thread and some comments may be shown as answers.

TreeList Drag/Sort?

3 Answers 52 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Louise
Top achievements
Rank 1
Louise asked on 08 Nov 2016, 09:01 AM
When dragging and drop, the row is added as a child. Is there an option to drop and it will sort? The Gannt Control already has that kind of function.

3 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 09 Nov 2016, 08:52 AM

Hello Louise,

You could apply initial sorting of the TreeList. Then when the user drops the item DataSource will re-apply the sort descriptor.

A quick example - http://dojo.telerik.com/@rusev/aNUNA

Regards,
Nikolay Rusev
Telerik by Progress
 
Build rich, delightful, *native* Angular 2 apps with Kendo UI for Angular 2. Try it out today! Kendo UI for Angular 2 (currently in beta) is a jQuery-free toolset, written in TypeScript, designed from the ground up to offer true, native Angular 2 components.
 
0
Louise
Top achievements
Rank 1
answered on 19 Nov 2016, 12:20 AM

Hello,

The example given still puts the dragged item inside the destination instead of beside it

0
Accepted
Nikolay Rusev
Telerik team
answered on 22 Nov 2016, 08:21 AM

Hello Louise,

Seems that I misunderstood your initial question. Please accept my apologies for this.

Unfortunately the built-in TreeList drag and drop doesn't support re-ordering of the items.

Regards,
Nikolay Rusev
Telerik by Progress
Kendo UI is ready for Visual Studio 2017 RC! Learn more.
Tags
TreeList
Asked by
Louise
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Louise
Top achievements
Rank 1
Share this question
or