This question is locked. New answers and comments are not allowed.
Please have a look at the code below - does it work for you? For some reason the sort column does not work. Thanks
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"*"
/>
<
RowDefinition
Height
=
"Auto"
/>
</
Grid.RowDefinitions
>
<
decodeHelpers:RadGridViewExt
x:Name
=
"GridViewMessages"
Background
=
"White"
ScrollViewer.HorizontalScrollBarVisibility
=
"Auto"
ScrollViewer.VerticalScrollBarVisibility
=
"Auto"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
AutoGenerateColumns
=
"False"
IsReadOnly
=
"True"
ShowColumnFooters
=
"False"
EnableColumnVirtualization
=
"True"
EnableRowVirtualization
=
"True"
VirtualizingStackPanel.VirtualizationMode
=
"Recycling"
ShowGroupPanel
=
"False"
Grid.Row
=
"0"
CanUserSortColumns
=
"True"
CanUserFreezeColumns
=
"False"
RowIndicatorVisibility
=
"Collapsed"
SelectionMode
=
"Extended"
SelectionUnit
=
"Cell"
ClipboardCopyMode
=
"All"
HierarchyChildTemplate
=
"{StaticResource childGridView}"
ItemsSource
=
"{Binding Data, ElementName=GridViewDomainDataSource}"
RowIsExpandedChanging
=
"GridViewMessages_RowIsExpandedChanging"
>
<
decodeHelpers:ContextMenuExtended.ContextMenu
>
<
decodeHelpers:ContextMenuExtended
x:Name
=
"MessagesContextMenu"
Opened
=
"ContextMenu_Opened"
>
<
decodeHelpers:ContextMenuExtended.Items
>
</
decodeHelpers:ContextMenuExtended.Items
>
</
decodeHelpers:ContextMenuExtended
>
</
decodeHelpers:ContextMenuExtended.ContextMenu
>
<
decodeHelpers:RadGridViewExt.Columns
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding ID}"
Header
=
"ID"
Width
=
"Auto"
MinWidth
=
"50"
IsFilterable
=
"False"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding MessageTypeID}"
Header
=
"Type"
Width
=
"Auto"
MinWidth
=
"60"
/>
</
decodeHelpers:RadGridViewExt.Columns
>
<
decodeHelpers:RadGridViewExt.ChildTableDefinitions
>
<
telerik:GridViewTableDefinition
/>
</
decodeHelpers:RadGridViewExt.ChildTableDefinitions
>
</
decodeHelpers:RadGridViewExt
>
<
telerik:RadDataPager
Name
=
"RadDataPagerMessages"
Grid.Row
=
"1"
Source
=
"{Binding Data, ElementName=GridViewDomainDataSource}"
IsTotalItemCountFixed
=
"False"
PageSize
=
"50"
Margin
=
"0,0,0,4"
DisplayMode
=
"All"
/>
</
Grid
>
<
riaControls:DomainDataSource
x:Name
=
"GridViewDomainDataSource"
QueryName
=
"GetMessages"
AutoLoad
=
"False"
LoadSize
=
"100"
PageSize
=
"50"
LoadedData
=
"GridViewDomainDataSource_LoadedData"
>
<
riaControls:DomainDataSource.DomainContext
>
<
context:SomethingContext
/>
</
riaControls:DomainDataSource.DomainContext
>
</
riaControls:DomainDataSource
>