or
<
telerik:RadGridView
ItemsSource
=
"{Binding Object.Details.Attributes}"
AutoGenerateColumns
=
"True"
ScrollViewer.CanContentScroll
=
"True"
ScrollViewer.HorizontalScrollBarVisibility
=
"Visible"
ScrollViewer.VerticalScrollBarVisibility
=
"Visible"
CanUserDeleteRows
=
"False"
CanUserInsertRows
=
"False"
CanUserReorderColumns
=
"False"
CanUserResizeRows
=
"False"
CanUserFreezeColumns
=
"False"
CanUserSortColumns
=
"False"
IsFilteringAllowed
=
"False"
RowIndicatorVisibility
=
"Collapsed"
ShowGroupPanel
=
"False"
DataLoadMode
=
"Asynchronous"
IsReadOnly
=
"{Binding IsEditing, Converter={StaticResource InvertBoolConverter}}"
EnableRowVirtualization
=
"True"
FrozenColumnCount
=
"1"
AllowDrop
=
"True"
behaviors:RowReorderBehavior.IsEnabled
=
"True"
BeginningEdit
=
"Attributes_RadGridView_BeginningEdit"
>
<
telerik:RadGridView.Resources
>
<
DataTemplate
x:Key
=
"DraggedItemTemplate"
>
<
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
Text
=
"Dragging:"
/>
<
TextBlock
Text
=
"{Binding CurrentDraggedItem}"
FontWeight
=
"Bold"
/>
</
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
Text
=
"{Binding CurrentDropPosition}"
FontWeight
=
"Bold"
MinWidth
=
"45"
/>
<
TextBlock
Text
=
", ("
Foreground
=
"Gray"
/>
<
TextBlock
Text
=
"{Binding CurrentDraggedOverItem}"
/>
<
TextBlock
Text
=
")"
Foreground
=
"Gray"
/>
</
StackPanel
>
</
StackPanel
>
</
DataTemplate
>
</
telerik:RadGridView.Resources
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
Header
=
"Attribute"
DataMemberBinding
=
"{Binding Attribute.TechName}"
IsReadOnly
=
"True"
/>
.......
<
telerik:GridViewDataColumn
Header
=
"Length"
DataMemberBinding
=
"{Binding Attribute.Details.LengthInternal}"
IsReadOnly
=
"True"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
But with this code, rows are displayed blank (only headers and scrollbars are visibles) :
<
telerik:RadGridView
ItemsSource
=
"{Binding Object.Details.Attributes}"
AutoGenerateColumns
=
"True"
ScrollViewer.CanContentScroll
=
"True"
ScrollViewer.HorizontalScrollBarVisibility
=
"Visible"
ScrollViewer.VerticalScrollBarVisibility
=
"Visible"
CanUserDeleteRows
=
"False"
CanUserInsertRows
=
"False"
CanUserReorderColumns
=
"False"
CanUserResizeRows
=
"False"
CanUserFreezeColumns
=
"False"
CanUserSortColumns
=
"False"
IsFilteringAllowed
=
"False"
RowIndicatorVisibility
=
"Collapsed"
ShowGroupPanel
=
"False"
DataLoadMode
=
"Asynchronous"
IsReadOnly
=
"{Binding IsEditing, Converter={StaticResource InvertBoolConverter}}"
EnableRowVirtualization
=
"True"
FrozenColumnCount
=
"1"
AllowDrop
=
"True"
behaviors:RowReorderBehavior.IsEnabled
=
"True"
BeginningEdit
=
"Attributes_RadGridView_BeginningEdit"
>
<
telerik:RadGridView.Resources
>
<
DataTemplate
x:Key
=
"DraggedItemTemplate"
>
<
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
Text
=
"Dragging:"
/>
<
TextBlock
Text
=
"{Binding CurrentDraggedItem}"
FontWeight
=
"Bold"
/>
</
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
Text
=
"{Binding CurrentDropPosition}"
FontWeight
=
"Bold"
MinWidth
=
"45"
/>
<
TextBlock
Text
=
", ("
Foreground
=
"Gray"
/>
<
TextBlock
Text
=
"{Binding CurrentDraggedOverItem}"
/>
<
TextBlock
Text
=
")"
Foreground
=
"Gray"
/>
</
StackPanel
>
</
StackPanel
>
</
DataTemplate
>
</
telerik:RadGridView.Resources
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
Header
=
"Attribute"
DataMemberBinding
=
"{Binding Attribute.TechName}"
IsReadOnly
=
"True"
/>
.....
<
telerik:GridViewDataColumn
Header
=
"Length"
DataMemberBinding
=
"{Binding Attribute.Details.LengthInternal}"
IsReadOnly
=
"True"
/>
</
telerik:RadGridView.Columns
>
<
telerik:RadGridView.RowStyle
>
<
Style
TargetType
=
"telerik:GridViewRow"
>
<
Setter
Property
=
"Background"
Value
=
"Red"
/>
<
Setter
Property
=
"telerik:DragDropManager.AllowDrag"
Value
=
"True"
/>
</
Style
>
</
telerik:RadGridView.RowStyle
>
</
telerik:RadGridView
>
public
class
MainViewModel
{
public
ObservableCollection<DataObject> Data{
get
;
set
;}
...
}
public
class
DataObject
{
public
string
Name {
get
;
set
; }
public
ObservableCollection<DataPair> Data {
get
;
set
; }
}
public
class
DataPair
{
public
DateTime Time {
get
;
set
; }
public
double
Value {
get
;
set
; }
}
<
telerik:RadCartesianChart.SeriesProvider
>
<
telerik:ChartSeriesProvider
Source
=
"{Binding Data}"
>
<
telerik:ChartSeriesProvider.SeriesDescriptors
>
<
telerik:CategoricalSeriesDescriptor
ItemsSourcePath
=
"Data"
ValuePath
=
"Value"
CategoryPath
=
"Time"
>
<
telerik:CategoricalSeriesDescriptor.Style
>
<
Style
TargetType
=
"telerik:LineSeries"
>
<
Setter
Property
=
"RenderMode"
Value
=
"Light"
/>
</
Style
>
</
telerik:CategoricalSeriesDescriptor.Style
>
</
telerik:CategoricalSeriesDescriptor
>
</
telerik:ChartSeriesProvider.SeriesDescriptors
>
</
telerik:ChartSeriesProvider
>
</
telerik:RadCartesianChart.SeriesProvider
>
<
telerik:RadChart
Content
=
"RadChart"
HorizontalAlignment
=
"Left"
Margin
=
"10,455,0,10"
Grid.Row
=
"1"
Width
=
"791"
/>
<
telerik:RadSplitContainer
x:Name
=
"Split"
Width
=
"300"
>
<
telerik:RadPaneGroup
DockPanel.Dock
=
"Top"
>
<
telerik:RadPane
x:Name
=
"radPane"
Header
=
"Elements"
>
<
extensions:RadDiagramToolbox
telerik:StyleManager.Theme
=
"Windows8"
Title
=
"Gallery"
DataContext
=
"{StaticResource model}"
ItemsSource
=
"{Binding Galleries}"
ItemTemplate
=
"{StaticResource ToolboxGroupTemplate}"
Width
=
"{Binding Width, ElementName=radPane, Mode=TwoWay}"
/>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
<
telerik:RadGridView
x:Name
=
"radGridView"
ItemsSource
=
"{Binding MyQueryableCollectionView}"
AutoGenerateColumns
=
"True"
/>
<
telerik:RadDataPager
Source
=
"{Binding Items, ElementName=radGridView}"
PageSize
=
"10"
DisplayMode
=
"All"
/>
<
telerik:RadGridView
ItemsSource
=
"{Binding MyQueryableCollectionView}"
AutoGenerateColumns
=
"True"
/>
<
telerik:RadDataPager
Source
=
"{Binding MyQueryableCollectionView}"
PageSize
=
"10"
DisplayMode
=
"All"
/>
<
telerik:RadCartesianChart.Grid
>
<
telerik:CartesianChartGrid
MajorLinesVisibility
=
"X"
MajorXLineStyle
=
"{StaticResource StripLinesStyle}"
Background
=
"#D8D3D0"
/>
</
telerik:RadCartesianChart.Grid
>
<
telerik:RadGridView
x:Name
=
"StudyDisplayAllDataGrid"
AutoGenerateColumns
=
"False"
VerticalAlignment
=
"Stretch"
HorizontalAlignment
=
"Stretch"
AutoExpandGroups
=
"True"
RowIndicatorVisibility
=
"Collapsed"
ShowGroupPanel
=
"False"
IsReadOnly
=
"True"
GroupRenderMode
=
"Flat"
Visibility
=
"{Binding AnyProduct, Converter={StaticResource booleanToVisibleConverter}}"
ItemsSource
=
"{Binding StudyProductsGrid}"
/>
Using stream
As
IO.Stream = dialog.OpenFile()
StudyDisplayAllDataGrid.Export(stream,
New
GridViewExportOptions()
With
{ _
.Format = ExportFormat.Html, _
.ShowColumnHeaders =
True
, _
.ShowColumnFooters =
True
, _
.ShowGroupFooters =
False
_
})
End
Using