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

Setting all but the first and last element to Sortable

3 Answers 75 Views
Sortable
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 10 Apr 2014, 05:49 PM
Hi,

I'm attempting to sort a route of locations and the origin and destination need to remain static but the stops in between may change.  The problem is that when I'm moving any other element around I'm still presented with the option to place it below the last element (although it will not actually drop there).  I was wondering if there's something I'm missing in my config that will keep the last element anchored to that spot and not let me place things beneath it.

Thanks,
Kevin

3 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 11 Apr 2014, 09:26 AM
Hello Kevin,

The behavior which you described sounds like a bug in the control.
Is it possible for you to prepare a small example which demonstrates your exact implementation so I can examine it? Please provide such sample and I will check it right away.

You can use TryKendoUI or jsBin.com to quickly prepare a simple runnable demos.

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Kevin
Top achievements
Rank 1
answered on 11 Apr 2014, 01:13 PM
Hi Alexander,

Here is a quick TryKendoUI that illustrates the issue: http://trykendoui.telerik.com/oMOk/7

We use the "setSortable" function because the control is meant for a wide range of lists with dynamic sizes.  I'm not sure if that's the cause of the problem or not.  In our control the sortable fields may also contain a combobox which I left out for simplicity's sake in this demo.

Thanks,
Kevin
0
Alexander Valchev
Telerik team
answered on 14 Apr 2014, 01:45 PM
Hello Kevin,

Thank you for the example. The bug is fixed and the fix will be published in the next service pack release which is scheduled for the end of the week.
As a small appreciation for bringing this to our attention I have updated your Telerik points.

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Sortable
Asked by
Kevin
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Kevin
Top achievements
Rank 1
Share this question
or