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

Treeviewitem reordering

5 Answers 113 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Sampath
Top achievements
Rank 1
Sampath asked on 03 Jun 2010, 01:40 PM
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

5 Answers, 1 is accepted

Sort by
0
Viktor Tsvetkov
Telerik team
answered on 04 Jun 2010, 04:54 PM
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.
0
Sampath
Top achievements
Rank 1
answered on 06 Jun 2010, 05:20 PM
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
0
Viktor Tsvetkov
Telerik team
answered on 08 Jun 2010, 03:28 PM
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.
0
Sampath
Top achievements
Rank 1
answered on 21 Jun 2010, 11:47 AM
Hi All,
How can i  shuffle the order of radtreeviewitems by coding.

TIA

Regards
Sampath

0
Viktor Tsvetkov
Telerik team
answered on 23 Jun 2010, 03:00 PM
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
Tags
TreeView
Asked by
Sampath
Top achievements
Rank 1
Answers by
Viktor Tsvetkov
Telerik team
Sampath
Top achievements
Rank 1
Share this question
or