Completed
Last Updated: 09 Feb 2018 12:35 by ADMIN
ADMIN
Nasko
Created on: 25 Aug 2017 08:19
Category: UI for UWP
Type: Feature Request
0
DataGrid: Add support for expanding/collapsing groups programmatically

		
5 comments
ADMIN
Nasko
Posted on: 09 Feb 2018 12:35
Johnson,

Could you please open an issue in the repository explaining in details the setup of the DataGrid and some steps how the issue could be reproduced?
https://github.com/telerik/UI-For-UWP/issues

We prefer to track the issues there as the current feedback item is for a specific functionality that could not be connected to the observed exception.

Thanks in advance.
Johnson
Posted on: 09 Feb 2018 12:27
Hi Atanas,

Unfortunately, the latest release v1.0.0.9 breaks the code when IsCellFlyoutEnabled is set to "true" on any telerikGrid:DataGridTextColumn.

Please find bellow the stack trace.

Best Regards.

Johnson.

System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.UI.Xaml.Controls.Grid.DataGridColumn.PrepareCell(GridCellModel cell)
   at Telerik.UI.Xaml.Controls.Grid.Commands.CellFlyoutActionCommand.Execute(Object parameter)
   at Telerik.UI.Xaml.Controls.Primitives.CommandServiceBase`1.ExecuteCommandCore(Int32 id, Object parameter, Boolean searchUser)
   at Telerik.UI.Xaml.Controls.Grid.RadDataGrid.CellFlyoutTimerAnimationBoardCompleted(Object sender, Object e)
Johnson
Posted on: 09 Feb 2018 11:26
Hi Atanas,

You have been very helpful. I thank you.

Kind Regards,

Johnson.
ADMIN
Nasko
Posted on: 09 Feb 2018 10:50
Hi Johnson,

The functionality is already part of the repository. In order to use it you need to work with the DataView of the DataGrid and through it you can invoke the ExpandGroup/Item and CollapseGroup/Methods as shown below:
this.grid.GetDataView().ExpandGroup(thegroup);

The code could be found here:
https://github.com/telerik/UI-For-UWP/blob/master/Controls/Grid/Grid.UWP/View/DataView/DataGridDataView.cs

Hope this helps.
Johnson
Posted on: 09 Feb 2018 10:41
When would this be available in the Open Source Git Hub Release please?