bug with checkboxes for tree

19 posts, 0 answers
  1. Chad
    Chad avatar
    25 posts
    Member since:
    Nov 2008

    Posted 12 Feb 2009 Link to this post

    Hi,

    I found a couple of bugs with the checkboxes for the tree.

    When isTriStateMode="True", tree.CheckedItems returns the partially checked items as checked, I don't think this is what most users would like, is there a work around for this?

    Also, When isTriStateMode = "False" if the parent checkboxes are checked, none of the children checkboxes get checked, this might be because I have an OnExpanded Event, maybe this overrides somthing.

    Thanks,
    Chad
  2. Chad
    Chad avatar
    25 posts
    Member since:
    Nov 2008

    Posted 12 Feb 2009 Link to this post

    I found a workaround for this, I guess you can use an if statement to make sure that it is Checked an not intermittent with:

    RadTreeViewItem treeItem = new RadTreeViewItem();

     if (treeItem.CheckState == System.Windows.Automation.ToggleState.On)
    {

    }

    Chad
  3. Tihomir Petkov
    Admin
    Tihomir Petkov avatar
    576 posts

    Posted 13 Feb 2009 Link to this post

    Hello Chad,

    This is a known bug which is fixed and will be available in our Q1 release. Thank you for reporting it.

    Greetings,
    Tihomir Petkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  4. Mark Hanson
    Mark Hanson avatar
    9 posts
    Member since:
    Oct 2012

    Posted 26 May 2009 Link to this post

    Hi,

    Is this issue solved in the latest release ?


    Regards,
  5. Tihomir Petkov
    Admin
    Tihomir Petkov avatar
    576 posts

    Posted 27 May 2009 Link to this post

    Hi Mark,

    Unfortunately the priority of this bug had to be degraded due to other ongoing efforts within our team. However, considering recent customer inquiries we re-scheduled the bug for immediate fixing. This means that the bug will be resolved in our next internal build, which will be available in your client account once it is available. Note that in order to be able to see the latest internal build you would have to first download the latest official release - SP2.

    Please let me know if you have further questions.

    Greetings,
    Tihomir Petkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. Darren Martin
    Darren Martin avatar
    12 posts
    Member since:
    Jul 2012

    Posted 27 Feb 2010 Link to this post

    This is a serious bug with no real work around why would it not make it into the Q1 Release ? 
  7. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 04 Mar 2010 Link to this post

    Hi Darren Martin,

    There are two things mentioned:

    When isTriStateMode="True", tree.CheckedItems returns the partially checked items as checked, I don't think this is what most users would like, is there a work around for this?

    It was a design decision to include the "Indeterminate" check state items in this collection since there is no other way to get to them. The collection can be filtered to get the "Checked" items. I have added an item in the public issue tracking system where you can track the status of this, its title is: 

    TreeView: The CheckedItems Collection Should not Contain Indeterminate Items

    The other thing is:

    Also, When isTriStateMode = "False" if the parent checkboxes are checked, none of the children checkboxes get checked, this might be because I have an OnExpanded Event, maybe this overrides somthing.

    This works like this by design.

    Sincerely yours,
    Miroslav
    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.
  8. Darren Martin
    Darren Martin avatar
    12 posts
    Member since:
    Jul 2012

    Posted 05 Jul 2010 Link to this post

    That was a poor design decision.  Can you reconsider ?
  9. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 08 Jul 2010 Link to this post

    Hi Darren Martin,

    which of the two items you think should be changed?

    All the best,
    Valentin.Stoychev
    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
  10. Darren Martin
    Darren Martin avatar
    12 posts
    Member since:
    Jul 2012

    Posted 08 Jul 2010 Link to this post

    I would expect that if you say isTriStateMode = "False" then there is no "intermediate state" on the check box..It is checked or not.
    A new property AutoCheckChildren = "True" would be useful if users wanted that function only available in tristatemode.

  11. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 14 Jul 2010 Link to this post

    Hello Darren Martin,

    Yes - in fact when the IsTriStateMode is false there should be no checkboxes in intermediate state. If you have a scenario when this is not the case - please let us know.

    Best wishes,
    Valentin.Stoychev
    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
  12. Darren Martin
    Darren Martin avatar
    12 posts
    Member since:
    Jul 2012

    Posted 10 Aug 2010 Link to this post

    I have confirmed this does not work correctly even in the latest build. see attached image and note the code below
    IsTriStateMode
    =
    "False" 


    <telerikNavigation:RadTreeView 
    x:Name="_LayersTree" Grid.Row="1" Width="Auto" Height="Auto" 
    HorizontalAlignment="Left" VerticalAlignment="Top" Margin="3,3,3,0" 
    SelectionMode="Single" IsLineEnabled="True" IsExpandOnDblClickEnabled="False" 
    IsExpandOnSingleClickEnabled="True" IsTriStateMode="False" 
    ItemsOptionListType="CheckList" IsOptionElementsEnabled="True" 
    IsRootLinesEnabled="True" Checked="LayersTree_CheckedChanged" 
    Unchecked="LayersTree_CheckedChanged" 
    SelectionChanged="LayersTree_SelectionChanged" />
  13. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 13 Aug 2010 Link to this post

    Hello Darren Martin,

    I have been looking into this now. Thank you for bringing it up!

    My first two attempts to reproduce it were unsuccessful, there I used an ItemsSouce. It seems though that the bug is only present when the items are created in code. Indeed we have not handled this case correctly and at this point and the two-state mode was working as three-state.

    The bug has been fixed and I am attaching the project that I used to reproduce it with updated dlls.

    The changes could not be part of the SP released yesterday and will be included in next week's internal build and any release after this.

    Your Telerik Points have been updated for your feedback.

    Greetings,
    Miroslav
    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
  14. Darren Martin
    Darren Martin avatar
    12 posts
    Member since:
    Jul 2012

    Posted 13 Aug 2010 Link to this post

    Miroslav,

    I appreciate you looking into this and I will try out the new build.

    Regards,

    Darren
  15. Darren Martin
    Darren Martin avatar
    12 posts
    Member since:
    Jul 2012

    Posted 19 Aug 2010 Link to this post

    The samples crashes; when is this going to be released as a new internal build ?
  16. Viktor Tsvetkov
    Admin
    Viktor Tsvetkov avatar
    382 posts

    Posted 24 Aug 2010 Link to this post

    Hello Darren Martin,

    Have you tried this with the assemblies from our latest internal build?

    Sincerely yours,
    Viktor Tsvetkov
    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
  17. Darren Martin
    Darren Martin avatar
    12 posts
    Member since:
    Jul 2012

    Posted 25 Aug 2010 Link to this post

    Will try it today.  However, looking at the release notes it does not mention this fix at all.
  18. Darren Martin
    Darren Martin avatar
    12 posts
    Member since:
    Jul 2012

    Posted 26 Aug 2010 Link to this post

    Tried the latest build (00759RadControls_for_Silverlight_4_2010_2_0821_DEV) with no success.
  19. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 31 Aug 2010 Link to this post

    Hello Darren Martin,

    Indeed the fix was released only with the 2010.2.0827 version.

    I tested my example
    (http://www.telerik.com/ClientsFiles/211754_treeviewcheckeditems.zip)
    with this version and it seems to behave as expected.

    Hopefully it will work for you as well.

    Kind regards,
    Miroslav
    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