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

RadLinearSparkline randomly moving markers after scrolling in DataGrid

1 Answer 53 Views
Sparkline
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 05 Jul 2012, 11:49 AM
Hi,

I have a RadLinearSparkLine control within a DataGridTemplateColumn of my DataGrid. After I scroll, the markers on the RadLinearSparkline seem to jump around to random spots (please see attached screenshots). How do I prevent this from happening?

  <sdk:DataGridTemplateColumn Width="Auto" MinWidth="100" CanUserReorder="False" CanUserResize="True" CanUserSort="False">
          <sdk:DataGridTemplateColumn.CellTemplate>
            <DataTemplate>
                <telerik:RadLinearSparkline MinWidth="90" Height="20" Margin="5,4"
                                            ItemsSource="{Binding Uptake}"
                                            ShowMarkers="True" LineStroke="{Binding UptakeBrush}"
                                            AutoRange="False" MinYValue="0">
                </telerik:RadLinearSparkline>
            </DataTemplate>
          </sdk:DataGridTemplateColumn.CellTemplate>
        </sdk:DataGridTemplateColumn>

Kind regards,
Chris

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 09 Jul 2012, 11:55 AM
Hi Chris,

The problem you are observing is caused by the UI virtualization of the RadGridView. You can try turning off the GridView virtualization by setting EnableRowVirtualization to False. You can find more information in this topic in our help system.

I will forward your report to our developers for further investigation. Meanwhile you can use the fix described above.

Kind regards,
Yavor
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Sparkline
Asked by
Chris
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or