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

RadGridView does not work properly under Silverlight 3 + RIA Services

7 Answers 228 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ariel Ben Horesh
Top achievements
Rank 1
Ariel Ben Horesh asked on 08 Dec 2009, 12:38 PM
Hi
I have been trying out RIA Services walk through. (http://bit.ly/5w1LEu).
The walkthourgh uses the regular Sliverlight grid. I've tried to change it to use the Teleric one.
When using the code-behind to populate the grid like this, it appears to work.

  this.dataGrid1.ItemsSource = _OrganizationContext.Employees;

But when I'm using the DomainDataSource as specified later on the walkthourgh, no Items are populated into the grid. Note that it is working for the regular Silverlight Grid.
Possibly a bug?

Ariel

7 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 08 Dec 2009, 12:47 PM
Hello Ariel Ben Horesh,

Could you please take a look at our online example RIA Services with Domain Data Source. Is your project configured in the same way? Here is part of the code that you can see in the example:

<Examples:GridViewExample x:Class="Telerik.Windows.Examples.GridView.DomainDataSource.Example"
    xmlns:riaData="clr-namespace:System.Windows.Data;assembly=System.Windows.Ria.Controls"
    xmlns:riaControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Ria.Controls"
    xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
    xmlns:Examples="clr-namespace:Telerik.Windows.Examples"
    xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
    xmlns:e="clr-namespace:ExamplesWeb">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="30" />
        </Grid.RowDefinitions>
        <riaControls:DomainDataSource x:Name="DomainDataSource1" AutoLoad="True" QueryName="GetCustomers">
            <riaControls:DomainDataSource.DomainContext>
                <e:NorthwindDomainContext />
            </riaControls:DomainDataSource.DomainContext>
            <riaControls:DomainDataSource.FilterDescriptors>
                <riaData:FilterDescriptorCollection LogicalOperator="Or" />
            </riaControls:DomainDataSource.FilterDescriptors>
        </riaControls:DomainDataSource>
        <telerik:RadGridView x:Name="RadGridView1" ItemsSource="{Binding Data, ElementName=DomainDataSource1}"
                             Filtering="RadGridView1_Filtering" IsBusy="{Binding IsLoadingData, ElementName=DomainDataSource1}" />
        <data:DataPager x:Name="DataPager1" Grid.Row="1" PageSize="10" Source="{Binding Data, ElementName=DomainDataSource1}" />
    </Grid>
</Examples:GridViewExample>

I hope this helps.


Best wishes,
Ross
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.
0
Ariel Ben Horesh
Top achievements
Rank 1
answered on 10 Dec 2009, 11:08 AM
Well I am aware of the sample.
But still it doesn't work.
Check out this image: http://twitpic.com/sws2m
The grid is wired up like in the sample, There is data in the DomainDataSource, as you can see that the DataPager is properly working.
But no columns and no data.

Apperciate some help.
Ariel


0
Rossen Hristov
Telerik team
answered on 10 Dec 2009, 12:20 PM
Hello Ariel Ben Horesh,

Can you please send us the sample project you are developing. We will take a look at it to see what is wrong. Thanks in advance.

Best wishes,
Ross
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.
0
Ariel Ben Horesh
Top achievements
Rank 1
answered on 10 Dec 2009, 02:56 PM
0
Accepted
Rossen Hristov
Telerik team
answered on 11 Dec 2009, 12:05 PM
Hi Ariel Ben Horesh,

We have identified the problem. There was bug with version 2009.3.1103.1030 of RadGridView and the new beta of WCF RIA Services. You should upgrade to 2009 Q3 SP1 (2009.3.1208.1030) (released a couple of days ago) and everything will work as expected.

Regards,
Ross
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.
0
Ariel Ben Horesh
Top achievements
Rank 1
answered on 13 Dec 2009, 12:14 PM
OK that solved the issue Indeed!
Kaplah!
0
Donata
Top achievements
Rank 1
answered on 27 Apr 2012, 08:58 AM
I got error:
the name GridViewExample does not exist in  the namespace clr-namespace:Telerik.Windows.Examples

What should I do?
Tags
GridView
Asked by
Ariel Ben Horesh
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Ariel Ben Horesh
Top achievements
Rank 1
Donata
Top achievements
Rank 1
Share this question
or