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

RIA implementation

1 Answer 104 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ludovic Gerbault
Top achievements
Rank 1
Ludovic Gerbault asked on 26 Aug 2009, 02:40 PM
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 :

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}" /> 
 
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 ?


1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 31 Aug 2009, 05:28 AM
Hi,

Can you verify if MS DataGrid will work normally in this case? I will gladly help you if you can send us small example where these problems can be demonstrated.

Best wishes,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Ludovic Gerbault
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or