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

9 posts, 1 answers
  1. Kristjan Einarsson
    Kristjan Einarsson avatar
    95 posts
    Member since:
    Jan 2010

    Posted 22 Sep 2010 Link to this post

    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.
  2. Answer
    Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 23 Sep 2010 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Kristjan Einarsson
    Kristjan Einarsson avatar
    95 posts
    Member since:
    Jan 2010

    Posted 24 Sep 2010 Link to this post

    Thank you very much :)
  5. Anthony
    Anthony avatar
    2 posts
    Member since:
    Nov 2010

    Posted 30 Nov 2010 Link to this post

    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.
  6. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 03 Dec 2010 Link to this post

    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
  7. Anthony
    Anthony avatar
    2 posts
    Member since:
    Nov 2010

    Posted 03 Dec 2010 Link to this post

    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.
  8. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 03 Dec 2010 Link to this post

    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
  9. Arpit
    Arpit avatar
    49 posts
    Member since:
    Nov 2010

    Posted 29 May 2011 Link to this post

    Is the requested feature "Ability to check which item was selected" in PreviewChecked event is available in latest release?
  10. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 01 Jun 2011 Link to this post

    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
Back to Top
UI for WPF is Visual Studio 2017 Ready