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

bug with checkboxes for tree

18 Answers 141 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Chad
Top achievements
Rank 1
Chad asked on 12 Feb 2009, 06:32 PM
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

18 Answers, 1 is accepted

Sort by
0
Chad
Top achievements
Rank 1
answered on 12 Feb 2009, 06:43 PM
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
0
Tihomir Petkov
Telerik team
answered on 13 Feb 2009, 08:02 AM
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.
0
Mark Hanson
Top achievements
Rank 2
answered on 26 May 2009, 07:42 AM
Hi,

Is this issue solved in the latest release ?


Regards,
0
Tihomir Petkov
Telerik team
answered on 27 May 2009, 12:41 PM
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.
0
Darren Martin
Top achievements
Rank 1
answered on 27 Feb 2010, 06:51 PM
This is a serious bug with no real work around why would it not make it into the Q1 Release ? 
0
Miroslav
Telerik team
answered on 04 Mar 2010, 03:11 PM
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.
0
Darren Martin
Top achievements
Rank 1
answered on 05 Jul 2010, 04:36 PM
That was a poor design decision.  Can you reconsider ?
0
Valentin.Stoychev
Telerik team
answered on 08 Jul 2010, 03:38 PM
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
0
Darren Martin
Top achievements
Rank 1
answered on 08 Jul 2010, 05:09 PM
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.

0
Valentin.Stoychev
Telerik team
answered on 14 Jul 2010, 07:44 AM
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
0
Darren Martin
Top achievements
Rank 1
answered on 10 Aug 2010, 07:23 PM
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" />
0
Miroslav
Telerik team
answered on 13 Aug 2010, 01:09 PM
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
0
Darren Martin
Top achievements
Rank 1
answered on 13 Aug 2010, 04:48 PM
Miroslav,

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

Regards,

Darren
0
Darren Martin
Top achievements
Rank 1
answered on 19 Aug 2010, 10:03 PM
The samples crashes; when is this going to be released as a new internal build ?
0
Viktor Tsvetkov
Telerik team
answered on 24 Aug 2010, 04:46 PM
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
0
Darren Martin
Top achievements
Rank 1
answered on 25 Aug 2010, 04:50 PM
Will try it today.  However, looking at the release notes it does not mention this fix at all.
0
Darren Martin
Top achievements
Rank 1
answered on 26 Aug 2010, 09:45 PM
Tried the latest build (00759RadControls_for_Silverlight_4_2010_2_0821_DEV) with no success.
0
Miroslav
Telerik team
answered on 31 Aug 2010, 09:28 AM
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
Tags
TreeView
Asked by
Chad
Top achievements
Rank 1
Answers by
Chad
Top achievements
Rank 1
Tihomir Petkov
Telerik team
Mark Hanson
Top achievements
Rank 2
Darren Martin
Top achievements
Rank 1
Miroslav
Telerik team
Valentin.Stoychev
Telerik team
Viktor Tsvetkov
Telerik team
Share this question
or