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

CollapseAll/ExpandAll Removes Indeterminate checks from parent

6 Answers 16 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 05 Feb 2018, 06:34 PM

When I am using the  CheckState=TriStateMode.Indeterminate, all works fine when I check and uncheck.

But when I call CollapseAll or ExpandAll, all parents that have a Indeterminate check get removed.

This is easily replicable. Is there a workaround?

6 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 06 Feb 2018, 10:56 AM
Hello, John,

Thank you for writing.  

Following the provided information, I was unable to reproduce the issue you are facing. Please refer to the attached gif file illustrating the behavior on my end with the specified version. Am I missing something? I have attached my sample project. Could you please specify the exact steps how to reproduce the problem? Thank you in advance. 

I am looking forward to your reply.

Regards,
Dess
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
John
Top achievements
Rank 1
answered on 06 Feb 2018, 02:16 PM

The difference between mine and yours is my hierarchy went a few levels deeper.

for example I had:

  • Site

    • Child site-A

      • Child-child –A

      • Child-child-b

 

0
John
Top achievements
Rank 1
answered on 06 Feb 2018, 02:27 PM
I think I may have not made myself very clear, let me try to word smith this a little better. I am not referring to when everything in the group is checked and I click collapseAll. I am referring to when I have an indeterminate state. So assume that everything is expanded and I have an indeterminate state on one node. The parent node is shown to be indeterminate. As soon as I click collapseAll, the indeterminate state of the parent gets removed.
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 07 Feb 2018, 09:37 AM
Hello, John,  

Thank you for writing back. 

The provided explanation is greatly appreciated. Your initial explanation was also clear enough. I have updated my sample project to include one level deeper in the nodes. It still works as expected on my end. Please refer to the attached gif file illustrating the behavior on my end with the latest version. Am I missing something? Is the issue reproducible with my project on your end? If yes, please specify in details the exact steps that I need to perform in order to replicate it. Otherwise, feel free to submit a support ticket where you can provide a sample project and a video illustrating the undesired behavior. Thank you in advance.

I am looking forward to your reply.

  Regards,
Dess
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
John
Top achievements
Rank 1
answered on 07 Feb 2018, 03:11 PM

Your example works, but I cannot quite get it to work on mine. In fact when I use the treeview.BeginUpdate/EndUpdate as you did, I get unusual behavior. It works better when I don't use those. I am also setting tooltips and populating the Tag Property.

 

I'll play with some more but If I cannot get this to work with just this trivial stuff, I'll just give up on it and move to something else.

Thank you anyway.

0
Hristo
Telerik team
answered on 09 Feb 2018, 10:43 AM
Hello John,

Indeed, the project my colleague attached is working as expected. It appears that the issue observed in your application might be related to some of your local settings and set up. In case you keep experiencing it, please open a support ticket and attach your project demonstrating the issue. This way could test it locally and see what is causing the behavior you describe.

Let me know if you have other questions.

Regards,
Hristo
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Treeview
Asked by
John
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
John
Top achievements
Rank 1
Hristo
Telerik team
Share this question
or