Original Clicked Item

3 posts, 1 answers
  1. Francisco Amador
    Francisco Amador avatar
    40 posts
    Member since:
    Mar 2010

    Posted 22 Sep 2010 Link to this post

    In my code I'm trying to run something targeting only the original clicked item in the Checked event. I thought that since the ability to see the original item was added I could just do the following:

    if (e.OriginalSource == e.Source)
    {
       //Code
    }

    But recently I noticed that the OriginalSource and Source are the same every time. So if I have TriStateMode enabled and I have 4 levels of items it will fire off four checked events (Level 3 -> Level 2 -> Level 1 -> Level 4) and in each one the OriginalSource and Source are the same value of that level.

    If this is not how I check the originally checked item, how am I supposed to do so?
  2. Answer
    Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 23 Sep 2010 Link to this post

    Hello Francisco ,

    There is a solution for your problem in the following article: http://www.telerik.com/community/forums/wpf/treeview/ability-to-see-which-item-was-checked-initially-in-tri-state-mode.aspx
    Please let me know if you have any other questions.

    Best wishes,
    Peter Mladenov
    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. DevCraft banner
  4. Francisco Amador
    Francisco Amador avatar
    40 posts
    Member since:
    Mar 2010

    Posted 23 Sep 2010 Link to this post

    Thank you very much. This is what I was looking for.
Back to Top