Drag and drop in TreeList

8 posts, 0 answers
  1. Mateusz
    Mateusz avatar
    13 posts
    Member since:
    Jan 2015

    Posted 05 Aug 2015 Link to this post

    Hi 

    I would you ask for example how to turn on drag and drop function in tree list.
    I saw it in your demo and now I can't find any example of code how to configure this feature. 
    It is similar to tree list? 

    Thanks,
    Mateusz

  2. Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 06 Aug 2015 Link to this post

    Hi Mateusz,

    This is a relatively new feature (introduced with the Q2 2015 release) that can be enabled using the editable.move option, as seen in this demo.

    Regards,
    Alexander Popov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Mateusz
    Mateusz avatar
    13 posts
    Member since:
    Jan 2015

    Posted 06 Aug 2015 in reply to Alexander Popov Link to this post

    Thank you for answer. Problem was with to old version of Telerik in my project.

    I have also another few questions:
    1) So because this is new feature, are there implemented drag and drop events?
    2) How I can save order of items after some movement?

    Regards, 
    Mateusz

  5. Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 10 Aug 2015 Link to this post

    Hello again Mateusz,

    Yes, drag and drop events are on our to-do list, however at this point I cannot give you a time-frame in which they will be available. Since the events are not yet implemented, detecting the drag and drop become a bit difficult. Enabling the DataSource's autoSync option might help you get the desired results.

    Regards,
    Alexander Popov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  6. Jean-Philippe
    Jean-Philippe avatar
    5 posts
    Member since:
    Dec 2010

    Posted 17 Sep 2015 Link to this post

    Hello,

    I tried autoSync with no succes, the parent id field posted does not represent the drag done. Is there any way we can persist drag as shown in this demo? http://demos.telerik.com/kendo-ui/treelist/dragdrop

    Thank you
  7. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 21 Sep 2015 Link to this post

    Hello Jean-Philippe,

    This example shows that the parentId field (ReportsTo) is correctly updated (logged to console). Can you please provide a sample that shows the problem?

    Regards,
    Alex Gyoshev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  8. Jean-Philippe
    Jean-Philippe avatar
    5 posts
    Member since:
    Dec 2010

    Posted 21 Sep 2015 Link to this post

     Hello Alex,

    Thanks for your answer.

    If I run your exemple with 2015 Q2 SP1 the reportsTo field is always the same regardless were I drop it.

    I am currently using 2015 Q2 SP2 (v2015.2.827) wich I downloaded from UI for asp.net MVC 2015.2.805 but this version is not available in the dojo.

    I just saw a bug fix regarding this in the beta version that I am unable to download http://www.telerik.com/support/whats-new/kendo-ui/release-history/kendo-ui-q3-2015-beta

    TreeList drag&drop with autoSync enabled doesn't send corrent parent id field

     

    I guess I'll just have to wait.

  9. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 23 Sep 2015 Link to this post

    Hello Jean-Philippe,

    Indeed, it appears that the bug has been fixed after the official 2015 Q2 SP2 release. The fix will be available in the next internal build (later this week), and as part of the 2015.Q3 release at the end of this month.

    Regards,
    Alex Gyoshev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET MVC is VS 2017 Ready