Blazing fast performance with RadGridView for Silverlight 4, RadDataPager and WCF RIA Services

Posted on Dot net Slackers See other posts from Dot net Slackers
Published on Tue, 20 Apr 2010 00:00:00 GMT Indexed on 2010/04/20 16:54 UTC
Read the original article Hit count: 868

Filed under:

In my previous post I’ve used almost 2 million records to the check the grid performance in WPF and I’ve decided to do the same for Silverlight 4 using WCF RIA Services. The grid again is bound completely codelessly using DomainDataSource and RadDataPager:

  <Grid  x:Name="LayoutRoot">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<riaControls:DomainDataSource Name="orderDomainDataSource" QueryName="GetOrdersAndOrderDetails">
<riaControls:DomainDataSource.DomainContext>
<my:NorthwindDomainContext />
</riaControls:DomainDataSource.DomainContext>
</riaControls:DomainDataSource>
<telerik:RadGridView Name="RadGridView1" IsReadOnly="True" AutoExpandGroups="True"
ItemsSource="{Binding Data, ElementName=orderDomainDataSource}" />
<telerik:RadDataPager Grid.Row="1" PageSize="10"
Source="{Binding Data, ElementName=orderDomainDataSource}" DisplayMode="All" />
</Grid>
  

And the query again will return join between Northwind Orders and Order_Details:

  public  IQueryable<OrdersAndOrderDetails> GetOrdersAndOrderDetails()
    ...

Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.



Email this Article

© Dot net Slackers or respective owner