i am trying to get count of number rows when user groups the grid by any column in the grid.
however, i donot have column names specified in the .xaml file as i do so programmatically by assigning dataset to grid.datasource.
this is what i have in .xaml to get row count when user groups by a column - "Bin".
however, i donot get the row count at all, not even just the countfuntion.caption.
please let me know where am i going wrong here.
thanks so much,
sandy
<
UserControl x:Class="Intel.Cqn.Luminis.Silverlight.Screens.WIPScreen"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:HeaderMenu="clr-namespace:Intel.Cqn.Luminis.Silverlight"
xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
xmlns:Controls1="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
xmlns:data="clr-namespace:Telerik.Windows.Data;assembly=Telerik.Windows.Data"
>
<Grid>
<telerik:RadGridView
Name="WipGrid"
CanUserReorderColumns="True"
CanUserInsertRows="False"
HeaderMenu:GridViewHeaderMenu.IsEnabled="True"
MultipleSelect="True"
AutoGenerateColumns="False"
ScrollMode="Deferred"
IsReadOnly="True"
>
<telerik:RadGridView.GroupDescriptors>
<data:GroupDescriptor Member="Bin">
<data:GroupDescriptor.AggregateFunctions>
<data:CountFunction Caption="total"/>
</data:GroupDescriptor.AggregateFunctions>
</data:GroupDescriptor>
</telerik:RadGridView.GroupDescriptors>
<Controls1:RadContextMenu.ContextMenu>
<Controls1:RadContextMenu x:Name="gridContextMenu">
<StackPanel Orientation="Horizontal">
<TextBlock Text="Choose columns: "/>
<ComboBox Name="ColumnComboBox" Width="24" />
</StackPanel>
<Controls1:RadMenuItem Header="Save View" Click="WipGrid_SaveView"/>
<Controls1:RadMenuItem Header="Refresh Data" Click="Refresh_Click"/>
</Controls1:RadContextMenu>
</Controls1:RadContextMenu.ContextMenu>
</telerik:RadGridView>
</Grid>
</
UserControl>