Dynamically adding items

2 posts, 0 answers
  1. Nathan
    Nathan avatar
    43 posts
    Member since:
    Sep 2011

    Posted 04 Apr 2017 Link to this post

    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?

  2. Stefan
    Admin
    Stefan avatar
    3008 posts

    Posted 06 Apr 2017 Link to this post

    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 visualization (charts) and form elements.
Back to Top