This is a migrated thread and some comments may be shown as answers.

scroll causing empty cell

2 Answers 57 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jerry
Top achievements
Rank 1
Jerry asked on 02 Apr 2012, 06:50 AM
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
<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

2 Answers, 1 is accepted

Sort by
0
Yordanka
Telerik team
answered on 04 Apr 2012, 03:22 PM
Hello Jerry,

Thank you for the feedback.

Could you confirm version of the Telerik controls you are using? Is the problem available with our latest official version - Q1 2012 SP1?
 
Kind regards,
Yordanka
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Jerry
Top achievements
Rank 1
answered on 04 Apr 2012, 10:30 PM
Hi there,


I'm still using '2011.1.419.1040'. Well, I upgrade to the latest version, see what happens.


thank you for your reply.


regards
Jerry Ren
Tags
GridView
Asked by
Jerry
Top achievements
Rank 1
Answers by
Yordanka
Telerik team
Jerry
Top achievements
Rank 1
Share this question
or