winforms-demos icon indicating copy to clipboard operation
winforms-demos copied to clipboard

TreeView control shows odd behavior

Open mcswaip1 opened this issue 3 years ago • 6 comments

Situation: We have a WinForms .NET Core application. TreeView control showing a list of parent and child items (several). Parent items have ShowCheckBox = false Child items have ShowCheckBox = true

Check the first child item. All the child items under that parent get checked. Is this expected behavior?

mcswaip1 avatar Mar 01 '21 20:03 mcswaip1

Hi mcswaip1,

Thank you for using Syncfusion Products.

We could observe that you are enabling checkbox for child item and disabled for parent item. But while you checking the first child item, it automatically selects all child . We too checked in your provided example, but we could able to observe that on selecting the item in checkbox , it does select only that particular checkbox item and not all other items. Please find the video for the same from following

Video: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Checkstate_Treeview-949457604

So kindly check the video and confirm us whether our understanding on the reported behavior is correct. If not, please send us the video that shows the exact issue, it would be helpful for us to proceed on it further. We have ensured it in 17.4.0.55v

Regards, Vijayalakshmi VR

VijayalakshmiVR avatar Mar 03 '21 13:03 VijayalakshmiVR

Vijayalakshmi VR, I probably uploaded the incorrect zip file. I have a video demonstrating the issue and will also include a correct version of the example that I used to demonstrate the issue in the video.

Thank you Paul

CheckBox-Binding-modified.zip

video: https://user-images.githubusercontent.com/20447369/109988678-c599c780-7cd5-11eb-86be-d2886d366271.mp4

mcswaip1 avatar Mar 04 '21 15:03 mcswaip1

This seems to be related to the InteractiveCheckBoxes property of the TreeViewAdv control. If this is true, selecting the first child (with parent not showing checkboxes) checks all the children under that parent. If this is false, then it behaves as expected. I'm not sure if this is a bug in the functionality or just the way it is supposed to be.

mcswaip1 avatar Mar 04 '21 18:03 mcswaip1

Hi Paul,

Sorry for the delay.

We have confirmed the reported scenario is a defect and logged a report for the reported scenario “Checkboxes not selected properly when InteractiveCheckBoxes is true”. We’ll include the code changes in our upcoming weekly nuget release expected to be published on 14th September, 2021.

You can track the status of this defect using the following feedback link:
https://www.syncfusion.com/feedback/28340/checkboxes-not-selected-properly-when-interactivecheckboxes-is-true

If you have any more specification replication procedure or a scenario to be tested you can add it as a comment in the portal.

Please let us know if you need any further assistance.

Regards, Thirupathi B.

ThirupathiBalakrishnan avatar Aug 31 '21 15:08 ThirupathiBalakrishnan

Hi Paul,

Thanks for your patience.

The reported issue " Checkboxes not selected properly when InteractiveCheckBoxes is true" has been resolved, and the code changes have been included in our most recent weekly nuget version 19.2.0.62. The reported Nuget packages have been published on nuget.org. The packages can be downloaded from the following link.

Nuget link: https://www.nuget.org/

Please let us know if you need any further assistance.

Regards,
Thirupathi B.

ThirupathiBalakrishnan avatar Sep 15 '21 06:09 ThirupathiBalakrishnan

Type 'System.IO.MemoryStream' in Assembly 'System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' is not marked as serializable.

Picture

How can I resolve this?

github4mathews avatar Oct 05 '22 09:10 github4mathews