Full support for DomainDataSource with RadGridView for Silverlight 3

by Vladimir Enchev | Comments 3

I'm happy to announce that with our next service pack you will be able to bind RadGridView completely codeless to DomainDataSource in Silverlight 3:

Untitled

<Grid>
  <Grid.RowDefinitions>
    <RowDefinition />
    <RowDefinition Height="30" />
  </Grid.RowDefinitions>
  <riaControls:DomainDataSource x:Name="DomainDataSource1" AutoLoad="True" LoadMethodName="LoadCustomers">
    <riaControls:DomainDataSource.DomainContext>
      <localWeb:NorthwindDomainContext />
    </riaControls:DomainDataSource.DomainContext>
  </riaControls:DomainDataSource>
  <telerik:RadGridView x:Name="RadGridView1" ItemsSource="{Binding Data, ElementName=DomainDataSource1}" />
  <df:DataPager x:Name="DataPager1" Grid.Row="1" PageSize="10" Source="{Binding Data, ElementName=DomainDataSource1}" />
</Grid>

All operations like paging, sorting and grouping are applied to the REST query with minimal JSON response:

Untitled1

Untitled2

Enjoy!

,
Senior Technical Architect

3 Comments

Tommy
Hi Vladimir,

I tried to use a include field for the Grouping and field binding for the new release.

It cannot show anything on the grid and will return error if I use it for grouping.

Do you have any idea what happen? Or it doesn't support include fields yet?

Thank you.
Aaron
This is great for displaying the data - how about a post about C-UD'ing data especially with a nested GridView within a RowDetail?

Comments

  1.    
      
      
       
  2. (optional, emails won't be shown on public pages)
  3. (optional)
Read more articles by Vladimir Enchev - or - read latest articles in Developer Tools


Follow vladimir_enchev on Twitter


Product Families