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

treelist reordering between the same layer not working

1 Answer 60 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 04 Oct 2020, 07:06 AM

hi,

I use

@(Html.Kendo().TreeList<SchoolInfoSectionViewModel>()

...

...

.Editable(editable => editable.Move(true))
.Reorderable(true)

.Sortable(true)

...

in the code.

 

When I drag the item it not show the reordering feature to reorder the same parent scope item. It only allows dragging the item into another one as a child.

Please advise what I am missing?

Thanks

 

Thanks

1 Answer, 1 is accepted

Sort by
0
Alex Hajigeorgieva
Telerik team
answered on 07 Oct 2020, 01:05 PM

Hi, Chris,

The Reorderable() method at root level is used to reorder columns.

To take advantage of the new row reordering, you should call the Editable.Move.Reorderable() method instead:

.Editable(editable => editable.Move(move => move.Reorderable(true)))

You can see the configuration in the source tab in the demos section here:

https://demos.telerik.com/aspnet-core/treelist/dragdrop

Kind Regards,
Alex Hajigeorgieva
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
TreeList
Asked by
Chris
Top achievements
Rank 1
Answers by
Alex Hajigeorgieva
Telerik team
Share this question
or