This question is locked. New answers and comments are not allowed.
Hi, I'm using the new RadDomainDataSource, I have a problem with the DataPager, the first time the datapager shows me Page zero, when I click next page, it shows me page 1 wich is the same page as page 0!, is there any problem?, I send you the code:
In my XAML file:
In my cs code:
If I chage to DomainDataSource instead of RadDomainDataSource, is working ok. Any idea?
Thank you.
In my XAML file:
<telerik:RadGridView x:Name="rgvEmployeeSelect" Grid.Column="0" Grid.Row="1" Margin="10,0,10,0" Cursor="Hand" AutoGenerateColumns="False" AlternateRowBackground="{StaticResource GridRowBackgroundColorBrush}" AlternationCount="2" CanUserFreezeColumns="False" CanUserDeleteRows="False" CanUserInsertRows="False" ColumnWidth="*" IsReadOnly="True" ShowGroupPanel="False" RowIndicatorVisibility="Collapsed" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ScrollViewer.VerticalScrollBarVisibility="Auto" ItemsSource="{Binding DataView, ElementName=ddsEmployeeSelectUC}" /> <telerik:RadDataPager x:Name="dpgEmployeeSelect" Grid.Column="0" Grid.Row="2" PageSize="50" DisplayMode="FirstLastPreviousNext" VerticalAlignment="Center" HorizontalAlignment="Stretch" Margin="10,0,10,0" Source="{Binding DataView, ElementName=ddsEmployeeSelectUC}" />In my cs code:
RadDomainDataSource dds = new RadDomainDataSource(); dds.PageSize = 50; dds.Name = "ddsEmployeeSelectUC"; dds.QueryName = "GetEmployee2"; dds.QueryParameters.Add(new QueryParameter { ParameterName = "department", Value = Entity.Department }); dds.QueryParameters.Add(new QueryParameter { ParameterName = "employeeID", Value = Entity.Employee }); dds.DomainContext = this.context; dds.Load(); this.Resources.Add("ddsEmployeeSelectUC", dds);If I chage to DomainDataSource instead of RadDomainDataSource, is working ok. Any idea?
Thank you.