I'm using the radGridView and it's hierarchy feature. Because of large amount of data, I fetch data first to the upper/first layer of radGridView with empty sub data object to provide +-mark of beginning of each row (identify that there are sub data available). I'm using the Radgridview.ItemsSource property to add data to the grid.
But now I have problem when expanding one of the row and dynamically add the dataobject to the selected childgrids.itemssource, it's not showing. I'm using following code to add data to the selected childgrid
private
void
alarmsTbl_DataLoading(
object
sender, Telerik.Windows.Controls.GridView.GridViewDataLoadingEventArgs e)
{
GridViewDataControl dataControl = (GridViewDataControl)sender;
if
(dataControl.ParentRow !=
null
)
{
AlarmsServiceReference.AlarmDetails[] groupDetails = alarmsClient.GetAlarmGroupDetails(alarmsTableDef.DBType, alarmsTableDef.ConnectionString, sql);
dataControl.ItemsSource = groupDetails;
}
}
How I can dynamically add dataobject to the expanded childgrid?