Hello,
I'm starting developing using RIA service for my application.
I started by building the example Telerik provides in his demo with my own PostgreSQL using a dotConnector to build an entity data model.
So I mapped one table and starting testing.
I can display all the information in my radgrid.
Then, I used a dataPager, same as in the demo. First bug, when I try to change from page 1 to another one, no other data gets displayed, even though the DataPager says that I have 31 pages of data with 10 items per page.
As for the second bug, which kind of bothers me, I added the following method in my DomainService class :
And in my xaml :
I can check in my method that the parameter is set at the correct value, I know I have corresponding data in the database, but the radgrid won't display it.
It loads, and nothing appears.
The debugger says that there is some kind of timeout.
Anyone could tell me if I'm doing somethign wrong or why it won't work ?
I'm starting developing using RIA service for my application.
I started by building the example Telerik provides in his demo with my own PostgreSQL using a dotConnector to build an entity data model.
So I mapped one table and starting testing.
I can display all the information in my radgrid.
Then, I used a dataPager, same as in the demo. First bug, when I try to change from page 1 to another one, no other data gets displayed, even though the DataPager says that I have 31 pages of data with 10 items per page.
As for the second bug, which kind of bothers me, I added the following method in my DomainService class :
public IQueryable<tmp_liste_selection> GetTmp_liste_selection_By_Id_Societe(int id_societe) |
{ |
return this.Context.tmp_liste_selection.Where((emp) => emp.id_societe.Equals(id_societe)); |
} |
And in my xaml :
<riaControls:DomainDataSource x:Name="DomainDataSource1" AutoLoad="True" QueryName="GetTmp_liste_selection_By_Id_societe" |
LoadingData="DomainDataSource1_LoadingData" LoadedData="DomainDataSource1_LoadedData"> |
<riaControls:DomainDataSource.DomainContext> |
<e:T2JDomainContext/> |
</riaControls:DomainDataSource.DomainContext> |
<riaControls:DomainDataSource.QueryParameters> |
<riaData:Parameter ParameterName="id_societe" Value="519336" /> |
</riaControls:DomainDataSource.QueryParameters> |
</riaControls:DomainDataSource> |
<telerik:RadGridView x:Name="RadGridView1" ItemsSource="{Binding Data, ElementName=DomainDataSource1}" |
Filtering="RadGridView1_Filtering" /> |
<data:DataPager x:Name="DataPager1" Grid.Row="1" PageSize="10" Source="{Binding Data, ElementName=DomainDataSource1}" /> |
It loads, and nothing appears.
The debugger says that there is some kind of timeout.
Anyone could tell me if I'm doing somethign wrong or why it won't work ?