Treeviewitem reordering

6 posts, 0 answers
  1. Sampath
    Sampath avatar
    9 posts
    Member since:
    Jun 2010

    Posted 03 Jun 2010 Link to this post

    Hi well am new to Telerik controls

    Can anyone please tell me how to change the order of the treeview items using code without using drag and drop functionality

    TIA
  2. Viktor Tsvetkov
    Admin
    Viktor Tsvetkov avatar
    382 posts

    Posted 04 Jun 2010 Link to this post

    Hi Sampath,

    If you are doing databinding you can programmatically rearrange your collection and this will reflect to the TreeView. In the attached file you can review this approach. Tell us what exactly your scenario is.

    Best wishes,
    Viktor Tsvetkov
    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Sampath
    Sampath avatar
    9 posts
    Member since:
    Jun 2010

    Posted 06 Jun 2010 Link to this post

    Hi Viktor,

          Am generating the treeview items dynamically am not getting it from the DB.
    Actually the reordering should happen after the treeview is populated. Like selecting an item and then clicking on a button
    should make the reorder happen like it happens when we drag and drop the treeviewitems. Can u pls helpme around with this.

    TIA
    Sampath Kumar.D
  5. Viktor Tsvetkov
    Admin
    Viktor Tsvetkov avatar
    382 posts

    Posted 08 Jun 2010 Link to this post

    Hello Sampath,

    If your idea is to make the reordering visually look like you are dragging and dropping items we still do not support this scenario. I added it as an item in our public issue tracking system under the name "TreeView: Programmatically reorder items with animation" and it will be available for voting and tracking tomorrow the latest. Let us know if you have additional questions or comments regarding this topic.

    Greetings,
    Viktor Tsvetkov
    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.
  6. Sampath
    Sampath avatar
    9 posts
    Member since:
    Jun 2010

    Posted 21 Jun 2010 Link to this post

    Hi All,
    How can i  shuffle the order of radtreeviewitems by coding.

    TIA

    Regards
    Sampath

  7. Viktor Tsvetkov
    Admin
    Viktor Tsvetkov avatar
    382 posts

    Posted 23 Jun 2010 Link to this post

    Hi Sampath,

    If you want to reorder the treeview items without animations you can simply follow the example that I provided to you. If you want visual reordering you should track "TreeView: Programmatically reorder items with animation" in our public issue tracking system.

    On a side note, I'd like to inform you that we've just released an online tool that allows you to reduce the size of your Silverilght applications. For more information, please visit http://blogs.telerik.com/blogs/posts/10-06-10/telerik_assembly_minifier.aspx

    Greetings,
    Viktor Tsvetkov
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
Back to Top
UI for WPF is Visual Studio 2017 Ready