<Window x:Class="AggregateInATextBox.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        Title="MainWindow" Height="350" Width="525">
	<Grid>
		<telerik:RadGridView x:Name="RadGridView1" AutoGenerateColumns="False" ShowGroupFooters="True" >
			<telerik:RadGridView.Columns>
				<telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" >
					<telerik:GridViewDataColumn.AggregateFunctions>
						<telerik:CountFunction  />
					</telerik:GridViewDataColumn.AggregateFunctions>
					<telerik:GridViewDataColumn.GroupFooterTemplate>
						<DataTemplate>

								<telerik:AggregateResultsList ItemsSource="{Binding}" VerticalAlignment="Center" Grid.Column="4">
									<ItemsControl.ItemTemplate>
										<DataTemplate>
											<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
												<TextBlock VerticalAlignment="Center" Text="{Binding Caption}" />
												<TextBox VerticalAlignment="Center" Text="{Binding FormattedValue}" />
											</StackPanel>
										</DataTemplate>
									</ItemsControl.ItemTemplate>
									<ItemsControl.ItemsPanel>
										<ItemsPanelTemplate>
											<StackPanel Orientation="Vertical" />
										</ItemsPanelTemplate>
									</ItemsControl.ItemsPanel>
								</telerik:AggregateResultsList>
						</DataTemplate>

					</telerik:GridViewDataColumn.GroupFooterTemplate>
				</telerik:GridViewDataColumn>
			</telerik:RadGridView.Columns>
		</telerik:RadGridView>
	</Grid>
</Window>
