Setting all but the first and last element to Sortable

4 posts, 0 answers
  1. Kevin
    Kevin avatar
    22 posts
    Member since:
    Feb 2014

    Posted 10 Apr 2014 Link to this post

    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
  2. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 posts

    Posted 11 Apr 2014 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Kevin
    Kevin avatar
    22 posts
    Member since:
    Feb 2014

    Posted 11 Apr 2014 in reply to Alexander Valchev Link to this post

    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
  5. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 posts

    Posted 14 Apr 2014 Link to this post

    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!
     
Back to Top
Kendo UI is VS 2017 Ready