Duplicated
Last Updated: 09 Aug 2021 07:12 by ADMIN

Hi,

 

I would like to have a feature from kendo sortable to select multiple items in a list and drag it to the other side of list.

Currently we do have feature only to move single item or the entire group to move across list.

I would like to have more customized way to have selected items in a list to move across from one end to another.

Please find the screenshot below

 

Declined
Last Updated: 09 Aug 2021 07:11 by ADMIN
Created by: Tom
Comments: 2
Category: Sortable
Type: Feature Request
7
Support selecting multiple items to be dragged/dropped.
Completed
Last Updated: 02 Aug 2021 09:03 by ADMIN
Currently, it is very difficult to get the Sortable to use Angular components as child items.
It would be great if it supported this.
Unplanned
Last Updated: 27 Jul 2021 12:29 by ADMIN
Created by: Maxime
Comments: 1
Category: Sortable
Type: Feature Request
16
Every drag and drop library I have used in the past support a handle option, meaning that the drag of an item only occurs if the the user has clicked on a specific child element of the item. Normally this option's value is a selector.

<kendo-sortable [data]="tracksData" [handle]="#headerBar">
    <template let-trackData="item">
        <track [tempo]="trackData.tempo"></track>
    </template>
</kendo-sortable>

Where #headerBar is the selector of an indirect or direct child element of TrackComponent.

I don't see how this can be achieved with the current API, but perhaps I'm wrong.

Here are 2 examples of an API for a handle option:
- jQuery UI
- dragula

Github ticket: https://github.com/telerik/kendo-angular2/issues/57#issuecomment-254558547
Completed
Last Updated: 27 Jul 2021 11:44 by ADMIN
DragEnd event should be fired when user ends a drag. Now this event is being fired when user is moving element in only one component.

I attach example in plunker. Please notice that there is event handler for dragEnd event. To test this please move colors in one pallete and between two palletes.

https://plnkr.co/edit/yED4zBX9R7lf75jZnlrq?p=preview

Best regards,
Pawel
Declined
Last Updated: 22 Jun 2021 14:32 by ADMIN
Created by: Maxime
Comments: 1
Category: Sortable
Type: Feature Request
2
I'm currently stuck at v12.1 of the Layout module, because there are some breaking changes after that that doesn't allow me to add elements between the tab titles and the tab content.

<kendo-tabstrip>
    <div>
        Static stuff that will be displayed for every tab, between the tab title and content.
    </div>

    <kendo-tabstrip-tab> 
        ...
    </kendo-tabstrip-tab>
    <kendo-tabstrip-tab> 
        ...
    </kendo-tabstrip-tab>
</kend-tabstrip>

This is working in v12.1, but not after that. In the newest version, the "static elements" are ignore/removed from the HTML.

Related Github ticket: https://github.com/telerik/kendo-angular2/issues/97
Declined
Last Updated: 16 Jun 2021 13:31 by ADMIN
Created by: Steve
Comments: 3
Category: Sortable
Type: Feature Request
2
Bound array on a kendo-sortable should update with no extra code
Unplanned
Last Updated: 28 Aug 2020 06:39 by ADMIN
Created by: Alessandro
Comments: 1
Category: Sortable
Type: Feature Request
0

Hello,

I'd like the angular package has got the same feature provided by the query package

https://docs.telerik.com/kendo-ui/api/javascript/ui/sortable/configuration/holdtodrag

Regards AL 

Unplanned
Last Updated: 03 Feb 2020 12:44 by ADMIN
Created by: Christoph
Comments: 1
Category: Sortable
Type: Feature Request
0

When updating data input of Kendo Sortable component, it currently destroys and re-renders dom for all items. That leads to "flickering" view and bad performance.

Example

// pseudocode

@Component(template: <kendo-sortable [data]="data"></kendo-sortable>)
class MyComponent {
  data = [obj1, obj2, … obj200];

  updateData() {
    this.data = [...this.data];
  }
}

Expected

When I call updateData() sortable dom should not be modified. All items are the same (same object reference) and so angular should keep the dom.

Current behavior

When I call updateData() kendo Sortable will destroy the dom and re-render all items.

Notes

The reason seems to be, that SortableComponent maps all items to an internal _localData array that adds a container element to each item. These container elements are always new objects and so Angular *ngFor will re-render everything. There's also no option to provide a custom trackBy callback.

Our scenario: We use kendo Sortable for a field mapping component that allows users to map CSV files to our database structure. Every user interaction will lead to a new array of mappings and so... every user input leads to a full re-rendering of some 100 form rows now... 

Unplanned
Last Updated: 10 Jan 2020 12:38 by ADMIN
Created by: ashish
Comments: 0
Category: Sortable
Type: Feature Request
7

Please provide an automatic scroll of the page while dragging an item off the visible screen boundaries. Thank you.

https://stackblitz.com/edit/angular-7it8f2?file=app/app.component.ts

Unplanned
Last Updated: 25 Nov 2019 10:06 by ADMIN
Created by: n/a
Comments: 0
Category: Sortable
Type: Feature Request
1
Please provide a built-in option that would allow to change the cursor when an item is dragged over an area where the item cannot be dropped.
Unplanned
Last Updated: 22 Aug 2019 12:36 by ADMIN
Created by: Mitchell
Comments: 0
Category: Sortable
Type: Feature Request
10
Please provide an option to change the position of the hint of the dragged item. Currently it is located below the cursor to the right. 
Unplanned
Last Updated: 15 Jul 2019 08:50 by ADMIN
Created by: Shai
Comments: 1
Category: Sortable
Type: Feature Request
7

Hi,

 

We are using the Kendo UI sortable component to allow drag & drop of tabs. Currently there is no way to control the position of the dragged element in relation to the cursor (It's always on the top left corner)

 

It would be nice if you could add an option to configure this, so that the cursor could be in the middle/bottom of the dragged element.

See the attached image.

Thanks in advance,

Shai.

Unplanned
Last Updated: 03 May 2019 10:40 by ADMIN
Created by: Christoph
Comments: 1
Category: Sortable
Type: Feature Request
0

Sometimes we're using kendo sortable to sort "panels" containing form elements.

Examples:

  • Sortable item with "delete" button
  • Sortable item with "enabled" checkbox

Problem:

The sortable will "catch" the mousdown/pointerdown events and form elements on draggable items will not work.

Solution:

We have to listen in a div for those events and stop propagation.

.. but that needs additional code in template and component. We've created a small directive to do that, but that's an additional module we have to include in each feature module (and we have to remember that it exists, and what was the name, …)

Feature request:

Add a directive to sortable module that allows us to exclude areas inside of sortable items from being draggable to make (form) element work in these areas.

---


import { Directive, ElementRef, OnInit, Renderer2, AfterViewInit } from '@angular/core';

@Directive({
    selector: '[draggableExclude]'
})
export class DraggableExcludeDirective implements AfterViewInit {

    constructor(
        private _elemRef: ElementRef,
        private _renderer: Renderer2,
    ) { }

    ngAfterViewInit() {
        this._renderer.listen(this._elemRef, 'mousedown', (e: MouseEvent) => e.stopPropagation());
        this._renderer.listen(this._elemRef, 'pointerdown', (e: MouseEvent) => e.stopPropagation());
    }
}

Note: Touch is not handled.

… and how we use it


                    <kendo-sortable  … >
                        <ng-template let-attribute="item">
                            <div class="details">
                                {{ attribute.name }}
                            </div>
                            <div draggableExclude>
                                <button kendoButton look="bare" type="button"
                                    (click)="requestDeleteAttribute(attribute)" icon="delete"></button>
                            </div>
                        </ng-template>
                    </kendo-sortable>