Hi,
I'm new to Telerik and have just downloaded the latest WPF trial.
I'm having trouble with the Gridview (version 2010.3.1110.35).
I'll post the XAML below, but I'm populating from an observableCollection pulled from a WCF service.
The grid populates OK, but I cannot group the columns please can you advise.
The window is binding to an ViewModel.
I've tried another sample wher I create some objects on the fly, putting them into an observableCollection and binding to it ... and
the grouping has worked fine.
Many thanks,
Joseph.
I'm new to Telerik and have just downloaded the latest WPF trial.
I'm having trouble with the Gridview (version 2010.3.1110.35).
I'll post the XAML below, but I'm populating from an observableCollection pulled from a WCF service.
The grid populates OK, but I cannot group the columns please can you advise.
The window is binding to an ViewModel.
I've tried another sample wher I create some objects on the fly, putting them into an observableCollection and binding to it ... and
the grouping has worked fine.
Many thanks,
Joseph.
<
Window
x:Class
=
"VisionRT.CRM.WPF.TelerikMainWindow"
mc:Ignorable
=
"d"
DataContext
=
"{Binding Main, Source={StaticResource Locator}}"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
xmlns:telerikData
=
"clr-namespace:Telerik.Windows.Data;assembly=Telerik.Windows.Data"
xmlns:telerikControls
=
"clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
xmlns:System
=
"clr-namespace:System;assembly=mscorlib"
d:DesignHeight
=
"390"
d:DesignWidth
=
"729"
Width
=
"650"
Loaded
=
"Window_Loaded"
>
<
Grid
>
<
telerik:RadGridView
HorizontalAlignment
=
"Stretch"
Margin
=
"12,62,12,0"
Name
=
"radGridView1"
ItemsSource
=
"{Binding Path=ContactList, Mode=TwoWay}"
AutoGenerateColumns
=
"False"
IsSynchronizedWithCurrentItem
=
"True"
VerticalAlignment
=
"Top"
Height
=
"248"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
Header
=
"Title"
DataMemberBinding
=
"{Binding Title}"
Width
=
"*"
IsGroupable
=
"True"
>
<
telerik:GridViewDataColumn.AggregateFunctions
>
<
telerikData:CountFunction
Caption
=
"Count: "
/>
</
telerik:GridViewDataColumn.AggregateFunctions
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
Header
=
"First Name"
DataMemberBinding
=
"{Binding FirstName}"
Width
=
"*"
IsGroupable
=
"True"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
</
Grid
>
</
Window
>