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

3 posts, 1 answers
  1. Muhammad Nawaz
    Muhammad Nawaz avatar
    2 posts
    Member since:
    Apr 2011

    Posted 11 Apr 2011 Link to this post

    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. Answer
    Maya
    Admin
    Maya avatar
    4062 posts

    Posted 14 Apr 2011 Link to this post

    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
  3. Muhammad Nawaz
    Muhammad Nawaz avatar
    2 posts
    Member since:
    Apr 2011

    Posted 14 Apr 2011 Link to this post

    thanks for reply
    yes i did same
    that works fine
Back to Top