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

selection of a same object in silverlight under different nodes of a treeview

2 Answers 14 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Muhammad Nawaz
Top achievements
Rank 1
Muhammad Nawaz asked on 11 Apr 2011, 11:36 PM
if I add same object through drage and drop under two or more different nodes in a silverlight treeview control, then I can not select this object in all places.

when I click on added object in one place that selects the object
then if I click in second place this selects object in previous place instead of selecting in second place.
is that a telerik treeview bug or...?  

if i restart application then every thing work fine and i can select added object in any place

2 Answers, 1 is accepted

Sort by
0
Accepted
Maya
Telerik team
answered on 14 Apr 2011, 02:03 PM
Hello Muhammad Nawaz,

Basically, this is kind of an expected behavior. When you have two equal instances of one and the same object, the selection does not know which of them to select.
What you may try to do is to clone the object you drag - in the DropQuery event you may create a new instance of the same object type and fill its properties with the values from the item you drag. Thus you will have two items with equal values, but they will be two separate instances.

 

Regards,
Maya
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
Muhammad Nawaz
Top achievements
Rank 1
answered on 14 Apr 2011, 04:12 PM
thanks for reply
yes i did same
that works fine
Tags
General Discussions
Asked by
Muhammad Nawaz
Top achievements
Rank 1
Answers by
Maya
Telerik team
Muhammad Nawaz
Top achievements
Rank 1
Share this question
or