This question is locked. New answers and comments are not allowed.
Hi there,
I'm having a really strange problem. I have a data grid, which I used to display a set of charts.
As you can you in picture1, everything shows as expected. But in picture 2, whenever I have more data and need to scroll, the chart for bottom row just won't show up. I have checked the data, it is not an issue.
xmal
regards
Jerry
I'm having a really strange problem. I have a data grid, which I used to display a set of charts.
As you can you in picture1, everything shows as expected. But in picture 2, whenever I have more data and need to scroll, the chart for bottom row just won't show up. I have checked the data, it is not an issue.
xmal
<controls:RadGridView x:Name="MyRadGridView" ItemsSource="{Binding MeasureResults}" Grid.Row="1" CanUserDeleteRows="False" SelectionMode="Single" CanUserFreezeColumns="True" CanUserReorderColumns="True" CanUserResizeColumns="False" RowIndicatorVisibility="Collapsed" IsFilteringAllowed="True" GridLinesVisibility="Vertical" ShowGroupPanel="False" CanUserSortColumns="True" IsReadOnly="False" DataLoadMode="Synchronous" AutoGenerateColumns="False" CanUserInsertRows="True" CurrentCellChanged="MyRadGridView_CurrentCellChanged" BeginningEdit="MyRadGridView_BeginningEdit" CellEditEnded="MyRadGridView_CellEditEnded" ShowInsertRow="False" AlternateRowBackground="#ECEAE6" AlternationCount="2" RowLoaded="MyRadGridView_RowLoaded"> <controls:RadGridView.Columns> <telerik:GridViewDataColumn Header="No." DataMemberBinding="{Binding DisplayOrder}" IsSortable="False" TextWrapping="Wrap" IsReadOnly="True" /> <telerik:GridViewDataColumn Header="Measure" DataMemberBinding="{Binding Name}" IsSortable="False" Width="500" TextWrapping="Wrap" IsReadOnly="True" CellStyleSelector="{StaticResource HeadingCellStyleSelector}" /> <telerik:GridViewDataColumn Header="" IsSortable="False" IsReadOnly="True" UniqueName="Trend" CellStyleSelector="{StaticResource ChartCellStyleSelector}"> <telerik:GridViewDataColumn.CellTemplate> <DataTemplate> <Grid LostFocus="RadChart_LostFocus" Loaded="ColumnGrid_Loaded"> <chart:RadChart ItemsSource="{Binding MeasureResultMonthAverageData}" Width="150" Height="75" MouseLeftButtonDown="RadChart_MouseLeftButtonDown" Loaded="TrendChart_Loaded"> <chart:RadChart.SeriesMappings> <charting:SeriesMapping> <charting:SeriesMapping.SeriesDefinition> <charting:SplineSeriesDefinition ShowItemLabels="False" ShowPointMarks="False" EmptyPointBehavior="Drop"> <charting:SplineSeriesDefinition.Appearance> <charting:SeriesAppearanceSettings Stroke="#444444" StrokeThickness="1" /> </charting:SplineSeriesDefinition.Appearance> </charting:SplineSeriesDefinition> </charting:SeriesMapping.SeriesDefinition> <charting:SeriesMapping.ItemMappings> <charting:ItemMapping FieldName="AnswerYearMonth" DataPointMember="XCategory"/> <charting:ItemMapping FieldName="Average" DataPointMember="YValue"/> </charting:SeriesMapping.ItemMappings> </charting:SeriesMapping> </chart:RadChart.SeriesMappings> <chart:RadChart.DefaultView> <charting:ChartDefaultView> <charting:ChartDefaultView.ChartArea> <charting:ChartArea EnableAnimations="False" Style="{StaticResource ChartStyleSelector}"> <charting:ChartArea.AxisX> <charting:AxisX DefaultLabelFormat="0#VAL{m:ss}" Visibility="Collapsed" /> </charting:ChartArea.AxisX> <charting:ChartArea.AxisY > <charting:AxisY MajorGridLinesVisibility="Visible" MinorTicksVisibility="Visible" Visibility="Collapsed" Title="Score" AutoRange="False" MinValue="0" MaxValue="1" Step="0.1" DefaultLabelFormat="#VAL{P0}"> <charting:AxisY.AxisStyles> <charting:AxisStyles GridLineStyle="{StaticResource CustomGridLine}" /> </charting:AxisY.AxisStyles> </charting:AxisY> </charting:ChartArea.AxisY> </charting:ChartArea> </charting:ChartDefaultView.ChartArea> <charting:ChartDefaultView.ChartLegend> <charting:ChartLegend Visibility="Collapsed" /> </charting:ChartDefaultView.ChartLegend> </charting:ChartDefaultView> </chart:RadChart.DefaultView> </chart:RadChart> </Grid> </DataTemplate> </telerik:GridViewDataColumn.CellTemplate> </telerik:GridViewDataColumn>regards
Jerry