scroll causing empty cell

3 posts, 0 answers
  1. Jerry
    Jerry avatar
    70 posts
    Member since:
    Jan 2011

    Posted 02 Apr 2012 Link to this post

    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. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 04 Apr 2012 Link to this post

    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 >>
  3. Jerry
    Jerry avatar
    70 posts
    Member since:
    Jan 2011

    Posted 04 Apr 2012 Link to this post

    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
Back to Top