Completed
Last Updated: 26 May 2022 06:15 by ADMIN
Release LIB 2022.2.530 (30 May 2022)
Robert
Created on: 24 Mar 2022 17:05
Category: GridView
Type: Bug Report
0
GridVIew: Expanding and collapsing hierarchy items does not work when IsExpandableBinding is used

Hi

I have a grid where some rows contain child rows.  In order to control which rows have the "+" expander icon I use the IsExpandableBinding property.  I also have a toolbar which contains a convenience button to collapse all the expanded rows.

This button is bound to a handler which called RasGridView.CollapseAllHierarchyItems(), but this does not have any effect.  I've tried removing the IsExpandableBinding property, and the collapse mechanism then works (but I get unwanted expanders on every row).

 

2 comments
Robert
Posted on: 29 Mar 2022 08:43
The suggested workaround works for me, thanks.
ADMIN
Dilyan Traykov
Posted on: 28 Mar 2022 14:26

Hi Robert,

This does seem to be an issue with the RadGridView control when using the IsExpandableBinding property. I have thus converted this thread to a bug report.

While we look for a viable solution for this, I can suggest using the IsExpandedBinding property as well and setting the IsExpanded property of all items to False instead of calling the CollapseAllHierarchyItems method:

            foreach (Item item in this.GridView.Items)
            {
                item.IsExpanded = false;
            }

Please let me know if such an approach would work for you for the time being.

Regards,
Dilyan Traykov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.