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

Dynamically adding items

1 Answer 175 Views
Sortable
This is a migrated thread and some comments may be shown as answers.
Nathan
Top achievements
Rank 2
Nathan asked on 04 Apr 2017, 05:46 PM

OK I give in... how do you add items to a Sortable Dynamically?  

 

Also, is it possible to temporarily hide items?

 

And can a sortable be generated from an array/datasource?

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 06 Apr 2017, 10:02 AM
Hello Nathan,

The Kendo UI Sortable is applied to an existing HTML elements, and currently, it cannot be connected to a dataSource widget.

An item can be added using jQuery to append the element to the list:

http://dojo.telerik.com/acUNU

Hiding an element can be achieved again with a custom code using jQuery to hide an element. The API is only providing an option to disable an item:

http://docs.telerik.com/kendo-ui/api/javascript/ui/sortable#configuration-disabled

Regards,
Stefan
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data (charts) and form elements.
Tags
Sortable
Asked by
Nathan
Top achievements
Rank 2
Answers by
Stefan
Telerik team
Share this question
or