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

Original Clicked Item

2 Answers 48 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Francisco Amador
Top achievements
Rank 1
Francisco Amador asked on 22 Sep 2010, 05:03 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Petar Mladenov
Telerik team
answered on 23 Sep 2010, 05:09 PM
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
0
Francisco Amador
Top achievements
Rank 1
answered on 23 Sep 2010, 06:07 PM
Thank you very much. This is what I was looking for.
Tags
TreeView
Asked by
Francisco Amador
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Francisco Amador
Top achievements
Rank 1
Share this question
or