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

Ability to see which item was checked initially in tri state mode

8 Answers 87 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Kristjan Einarsson
Top achievements
Rank 1
Kristjan Einarsson asked on 22 Sep 2010, 03:15 PM
Hi I can see this from your release notes "Ability to see which item was checked initially in tri state mode"  here http://www.telerik.com/versionnotes.aspx?id=2268

any info on how to use this ?

Best regards
Kristján.

8 Answers, 1 is accepted

Sort by
0
Accepted
Petar Mladenov
Telerik team
answered on 23 Sep 2010, 03:14 PM
Hi Kristjan ,

In order to access the initially checked item in tri state mode, a new EventArgs class was introduced with the Q2 SP1 release - RadTreeViewCheckEventArgs which inherits RadRoutedEventArgs and contains the boolean property  IsUserInitiated. This property indicates whether the item is the initially checked one.

Therefore, when handling the Checked() event you can cast the e parameter (of type RadRoutedEventArgs) to RadTreeViewCheckEventArgs and if the IsUserInitiated property is true, then the source of the event is the initially checked item.

I prepared a sample project illustrating how to implement this scenario and displaying the initially checked RadTreeViewItem's Header in a TextBox. 

We will add this info in the CheckBox Support help article as soon as possible. We'd appreciate any additional comments on the matter. I also updated your Telerik points. 

Best wishes
Petar 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
Kristjan Einarsson
Top achievements
Rank 1
answered on 24 Sep 2010, 05:35 PM
Thank you very much :)
0
Anthony
Top achievements
Rank 1
answered on 30 Nov 2010, 07:04 PM
I need to be able to know if the item checked or unchecked is user initiated in both the PreviewChecked and PreviewUnchecked events. Currently (2010 third quarter release), a RadRoutedEventArgs is passed as a parameter to both preview event handlers, which is a RadTreeViewCheckEventArgs, but the IsUserInitiated property is always false, even on the tree view item node that actually was the user initiated item. The IsUserInitiated property is only set properly once the Checked and Unchecked events are called.
0
Petar Mladenov
Telerik team
answered on 03 Dec 2010, 04:51 PM
Hi Anthony,

Thank you for your feedback. I logged your feature request in our PITS where you can vote for it (TreeView: Ability to see which item is initially checked (IsUserInitiated=true) in PreviewChecked event when TreeView is in TriState mode) from tomorrow the latest. I also updated your Telerik points.

Feel free to ask if you need further assistance.

Kind regards,
Petar Mladenov
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Anthony
Top achievements
Rank 1
answered on 03 Dec 2010, 05:13 PM
Thank you for the quick response.

As I mentioned before, I also need to be able to know if the item going to be unchecked was user initiated in the PreviewUnchecked event, not just the PreviewChecked event. Please take this into consideration as well. Thanks.
0
Tina Stancheva
Telerik team
answered on 03 Dec 2010, 05:45 PM
Hello Anthony,

We will definitely consider your feedback. I updated the PITS item accordingly. You can vote for it from here thus increasing its priority.

All the best,
Tina Stancheva
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Arpit
Top achievements
Rank 1
answered on 29 May 2011, 02:23 PM
Is the requested feature "Ability to check which item was selected" in PreviewChecked event is available in latest release?
0
Petar Mladenov
Telerik team
answered on 01 Jun 2011, 03:41 PM
Hello Kristjan Einarsson,

This feature request is already implemented it and you can use the Official Q1 2011 dlls (0315) or the SP1 0419. Thank your for your interest.

Best wishes,
Petar 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
Tags
TreeView
Asked by
Kristjan Einarsson
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Kristjan Einarsson
Top achievements
Rank 1
Anthony
Top achievements
Rank 1
Tina Stancheva
Telerik team
Arpit
Top achievements
Rank 1
Share this question
or