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).
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.