This question is locked. New answers and comments are not allowed.
Hello,
I'm using the RadGridView with a pager and I'm running a bit of code that takes significantly longer if the scroll bar is set to a position anywhere else other than full left. I only have 10 columns or so (15 Rows). I've narrowed it down and these lines take about 1 second each with the scroll bar not set full left.
xRadDataPager.Source = _mysource;
xRadDataPager.PageIndex = _pageindex;
xRadDataGrid.Items.Refresh();
With the scrollbar on the grid full left they are practically instant. I run them many times so the total operation goes from 1-2 seconds to 30-60 seconds or even minutes if there are many pages.
My xaml for the grid and pager are as such:
Setting the EnableColumnVirtualization to True doesn't help or affect the speed. I've tried programactically setting the scrollbar left before running my code as a hack (which I'm ok with if it works) with
Any ideas? Thank you,
Patrick
I'm using the RadGridView with a pager and I'm running a bit of code that takes significantly longer if the scroll bar is set to a position anywhere else other than full left. I only have 10 columns or so (15 Rows). I've narrowed it down and these lines take about 1 second each with the scroll bar not set full left.
xRadDataPager.Source = _mysource;
xRadDataPager.PageIndex = _pageindex;
xRadDataGrid.Items.Refresh();
With the scrollbar on the grid full left they are practically instant. I run them many times so the total operation goes from 1-2 seconds to 30-60 seconds or even minutes if there are many pages.
My xaml for the grid and pager are as such:
<telerikGridView:RadGridView x:Name="xRadDataGrid" Visibility="Collapsed" FontSize="14" ItemsSource="{Binding PagedSource,ElementName=xRadDataPager}" Height="455" HorizontalAlignment="Stretch" AutoGenerateColumns="False" Grid.Row="2" ShowGroupPanel="True" VerticalAlignment="Top" ElementExporting="mygrid_ElementExporting" IsReadOnly="True" GotFocus="xRadData_GotFocus" MouseRightButtonUp="xRadDataGrid_MouseRightButtonUp" Sorting="gridPlayerStats_Sorting" EnableColumnVirtualization="False"/> <telerikControlsData:RadDataPager x:Name="xRadDataPager" Visibility="Collapsed" Grid.Row="3" FontSize="14" PageSize="15" DisplayMode="First, Last, Next, Previous, Text" IsTotalItemCountFixed="True" Foreground="White" Background="Black" Width="Auto" GotFocus="xRadData_GotFocus"/>xRadDataGrid.ScrollIntoView(xRadDataGrid.CurrentItem, xRadDataGrid.Columns[0]); but this doesn't seem to help, it appears as if the grid doesn't actally move the scrollbar until after my code has run.
Any ideas? Thank you,
Patrick