Support for hiding hint element (preview) in SortableComponent

0 Answers 77 Views
Sortable
Evgeniy
Top achievements
Rank 1
Evgeniy asked on 26 Jul 2023, 01:28 PM

Hello kendo team.

Q: Is there a way in current or future versions to configure the visibility for hit (preview) element while dragging an item?

It seems that sortable has an hint: ElementRef; but no starlight forward way to configure its visibility.

Currently the following approach was used, but maybe there is a better way. 

<kendo-sortable [activeItemClass]="'sortable-active-item'">
</kendo-sortable>
.sortable-active-item {
  display: none;
}

.sortable-active-item[kendodraggable] {
  display: block;
}

ps. The project is tied to the old version of kendo ( "@progress/kendo-angular-sortable": "^3.0.3") and cannot update the package now

Br

Yanmario
Telerik team
commented on 31 Jul 2023, 06:34 AM

Hi Evgeniy,

Thank you for the provided details.

Your approach is valid and should be used in such a scenario as I can confirm that there isn't another fairly simple one available with our API.

Our team also introduced a new Drag and Drop utility package that allows more customization:

https://www.telerik.com/kendo-angular-ui/components/utils/draganddrop/

Regards,
Yanmario
Progress Telerik     

Evgeniy
Top achievements
Rank 1
commented on 31 Jul 2023, 12:04 PM

I will stick this approach then. Thanks.

No answers yet. Maybe you can help?

Tags
Sortable
Asked by
Evgeniy
Top achievements
Rank 1
Share this question
or