Check All Functionality in RadListView's Group Items

Environment

Product Version Product Author
2020.1.113 RadListView for WinForms Desislava Yordanova

Description

This article demonstrates how to implement check all functionality in the group items in RadListview.

check-all-functionality-in-listview-groups 001

Solution

It is necessary to add a RadCheckBoxElement to the ListViewElement that will manage all the check-boxes in the groups. We will create a custom ListViewDataItemGroup that stores the CheckState of data group item considering the toggle state of the inner items. It is also required to create a custom DetailListViewGroupVisualItem which represents the visual element that contains a RadCheckBoxElement. Once the visual element is toggled, it is necessary to update the CheckState of the respective data item.

A complete C# and VB code is available in our sdk-repository: Here

See Also

In this article
Not finding the help you need? Improve this article