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

RADDataPager goes in infinite loop

1 Answer 52 Views
This is a migrated thread and some comments may be shown as answers.
Saumil Shah
Top achievements
Rank 1
Saumil Shah asked on 11 Jun 2010, 03:20 PM

I am getting very strange problem with data pager. If I am trying to set pagesize more than total number of records then it goes in process. Aquire 50% of CPU and memory. Browser stop responding.


I am binding grid with IEnumerable result. XAML code is as below for pager and grid.
<StackPanel Orientation="Vertical">





    <StackPanel Orientation="Horizontal">





        <TextBlock Text="Display:" Style="{StaticResource TextBlockStyle}"/>





        <TextBox x:Name="txtPageSize" Style="{StaticResource PageSizeTextBoxStyle}" Text="10" />





        <Button x:Name="btnPageSize" Background="Transparent" Click="btnPageSize_Click" BorderBrush="{x:Null}">










                <Image Source="../Images/refresh.png" />















    <grid:RadDataPager x:Name="RadPagerData" Margin="3" PageSize="10" DisplayMode="All" IsTotalItemCountFixed="True"/> 










    <grid:RadGridView x:Name="xtRadGridView" ItemsSource="{Binding PagedSource, ElementName=RadPagerData}" 




DataLoaded="xtRadGridView_DataLoaded" HorizontalAlignment="Left" Style="{StaticResource GridViewStyle}"




AutoGenerateColumns="True" ShowColumnFooters="True"/>






Textbox "txtPageSize" is to define size of the page. Button click refresh the page with size defined in textbox.

In Code behind I set Source property of DataPager.


//Grid Bindings







RadPagerData.Source =


//_viewModel.Result is type of IEnumerable and loaded dynamically....
RadPagerData.Source = _viewModel.Result;


_viewModel.Result has 20 records. Initial pagesize is 10.
if i set page size to anything less than 20 it works fine. Paging and grid....

if i set page size to anything greater than or equals to 20 then it fails....

I also have aggregatefunctions on grid, which counts aggregate values on "xtRadGridView_DataLoaded" event...

please respond soon.... thanks.





1 Answer, 1 is accepted

Sort by
Rossen Hristov
Telerik team
answered on 14 Jun 2010, 12:14 PM
Hello Saumil Shah,

Thank you for contacting Telerik Support.

Could you please prepare a sample project that reproduces this behavior, open a separate support ticket and attach it. We will immediately investigate the issue you are faced with and see what is really going on.

Thanks in advance.

Best wishes,
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Asked by
Saumil Shah
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question