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

[Solved] Blank RadGridView

7 Answers 221 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Scott
Top achievements
Rank 1
Scott asked on 07 Jan 2010, 01:10 AM
I am using VS2010B2 with the Telerik Silverlight 4 beta controls and I am having trouble getting data from WCF RIA Services in a very simple XAML file. The same XAML file hooks up to Silverlight's DataGrid just fine but fails with no exceptions in the Telerik RadGridView. The RadGridView just shows up with no column headers and a gray background. The busy image seems to work fine while retrieving data. Also when I have a DataPager bound to the data source, the busy image on the Telerik control would show for a split second while paging.

Here's the XAML:
    <Grid x:Name="LayoutRoot" Background="White">  
        <ria:DomainDataSource x:Name="domainDataSource" AutoLoad="True" QueryName="GetOrders">  
            <ria:DomainDataSource.DomainContext> 
                <web:OrdersContext /> 
            </ria:DomainDataSource.DomainContext> 
        </ria:DomainDataSource> 
 
        <StackPanel> 
            <tgrid:RadGridView x:Name="dataGrid" Height="150" ItemsSource="{Binding Data, ElementName=domainDataSource}" 
                                   IsBusy="{Binding IsLoadingData, ElementName=domainDataSource}" /> 
 
            <data:DataGrid x:Name="anotherDataGrid" Height="150" ItemsSource="{Binding Data, ElementName=domainDataSource}" /> 
        </StackPanel> 
    </Grid> 

7 Answers, 1 is accepted

Sort by
0
Stefan Dobrev
Telerik team
answered on 07 Jan 2010, 01:44 PM
Hi Scott,

We have some problems with RIA Services and SL4 in the past, but they have been fixed. I'm attaching a new version of the dlls build against SL4. Can you please verify the state of the problem against it?

All the best,
Stefan Dobrev
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
Scott
Top achievements
Rank 1
answered on 07 Jan 2010, 06:20 PM
Hi Stefan,
Yes those DLLs did fix the problem.

Thanks, Scott
0
Scott
Top achievements
Rank 1
answered on 07 Jan 2010, 10:14 PM

I think I spoke too soon about the fix with the new DLLs. My project also has a RibbonBar on it and now I'm getting compilation errors like:
The tag 'RadRibbonBar' does not exist in XML namespace 'clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.RibbonBar'.
on top of this error I'm getting VS2010 crashes too. the exception stack is:
System.NotImplementedException: The method or operation is not implemented.
   at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkType.get_RuntimeType()
   at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkUtil.EnsureRuntimeType(Type type)
   at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkProvider.GetRuntimeType(Type reflectionType)
   at MS.Internal.Package.VSIsolationProviderService.RemoteReferenceProxy.VsReflectionResolver.GetRuntimeType(Type reflectionType)
   at Microsoft.Windows.Design.Metadata.ReflectionMetadataContext.CachingReflectionResolver.GetRuntimeType(Type reflectionType)
   at Microsoft.Windows.Design.Metadata.ReflectionMetadataContext.Microsoft.Windows.Design.Metadata.IReflectionResolver.GetRuntimeType(Type reflectionType)
   at MS.Internal.Metadata.ClrType.get_RuntimeMember()
   at MS.Internal.Metadata.ClrMember`1.Microsoft.Windows.Design.Metadata.Reflection.IReflectionMember.get_MemberInfo()
   at Microsoft.Windows.Design.Metadata.ReflectionMetadataContext.IsAssignableFrom(ITypeMetadata requesting, ITypeMetadata target)
   at Microsoft.Windows.Design.Platform.SilverlightMetadataContext.IsAssignableFrom(ITypeMetadata requesting, ITypeMetadata target)
   at MS.Internal.Metadata.ClrType.IsAssignableFrom(ITypeMetadata type)
   at MS.Internal.Metadata.WrapperType.IsAssignableFrom(ITypeMetadata type)
   at MS.Internal.Design.Metadata.ReflectionTypeNode.IsAssignableTo(TypeNode type)
... more...

Here is the simple XAML that shows the problem:

<UserControl x:Class="SilverlightApplicationWeb.MainPage" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:trb="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.RibbonBar" 
    xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data" 
    xmlns:tgrid="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView" 
    xmlns:ria="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Ria" 
    xmlns:riaData="clr-namespace:System.Windows.Data;assembly=System.Windows.Controls.Ria" 
    xmlns:webb="clr-namespace:SilverlightApplicationWeb.Web;assembly=SilverlightApplicationWeb" 
    mc:Ignorable="d" 
    d:DesignHeight="300" d:DesignWidth="400">  
 
    <Grid x:Name="LayoutRoot" Background="White">  
        <ria:DomainDataSource x:Name="domainDataSource" AutoLoad="True" QueryName="GetOrders">  
            <ria:DomainDataSource.DomainContext> 
                <webb:OrdersContext /> 
            </ria:DomainDataSource.DomainContext> 
        </ria:DomainDataSource> 
 
        <StackPanel> 
            <tgrid:RadGridView x:Name="dataGrid" Height="150"  Margin="10" ItemsSource="{Binding Data, ElementName=domainDataSource}" 
                                   IsBusy="{Binding IsLoadingData, ElementName=domainDataSource}" /> 
 
            <data:DataGrid x:Name="anotherDataGrid" Height="150" Margin="10" ItemsSource="{Binding Data, ElementName=domainDataSource}" /> 
 
            <trb:RadRibbonBar Grid.Column="1" Margin="10" ApplicationButtonVisibility="Collapsed" TitleBarVisibility="Collapsed" Background="#FFBFDBFF" x:Name="ribbonBar">  
                <trb:RadRibbonTab Name="rrtMain" Header="Main" Background="#FFCEDDF0">  
                    <trb:RadRibbonGroup Name="rrgActionGroup1" Header="Action Group 1">  
                        <StackPanel Orientation="Vertical">  
                            <trb:RadRibbonButton Text="Action 1" Size="Medium" trb:ScreenTip.Title="Action 1"   
                                                 trb:ScreenTip.Description="Description for Action 1" /> 
                            <trb:RadRibbonSplitButton Text="Action 2" Size="Medium" trb:ScreenTip.Title="Take action 2"   
                                                      trb:ScreenTip.Description="If you push this it will take action 2" /> 
 
                        </StackPanel> 
                    </trb:RadRibbonGroup> 
                </trb:RadRibbonTab> 
            </trb:RadRibbonBar> 
        </StackPanel> 
    </Grid> 
</UserControl> 
 
0
Scott
Top achievements
Rank 1
answered on 08 Jan 2010, 05:15 PM
Can someone help? This problem is blocking me.

Thanks.
0
Valentin.Stoychev
Telerik team
answered on 11 Jan 2010, 08:20 AM
Hello Scott,

About this error:
-----
The tag 'RadRibbonBar' does not exist in XML namespace 'clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.RibbonBar'.
-----

Are you sure you have a reference to the RibbonBar dll?

Regards,
Valentin.Stoychev
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
Scott
Top achievements
Rank 1
answered on 11 Jan 2010, 06:21 PM
Yes I have a reference to RibbonBar. I have two Telerik controls directories: one with the new DLLs you sent me and the other originals from the 2009_3_1211 build. If I use the 2009_3_1211 build the program compiles fine but with the new DLLs it fails to compile.
0
Valentin.Stoychev
Telerik team
answered on 12 Jan 2010, 09:49 AM
Hello Scott,

You can't mix the dll versions. This is the problem. We are releasing a SP later this week. It is recommended to use the SP build. Please let us know if you experience any problems.

Greetings,
Valentin.Stoychev
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
Scott
Top achievements
Rank 1
Answers by
Stefan Dobrev
Telerik team
Scott
Top achievements
Rank 1
Valentin.Stoychev
Telerik team
Share this question
or