This question is locked. New answers and comments are not allowed.
I'm just trying to make a RadGrid with WCF RIA with QueryableDomainServiceCollectionView etc to understand the logic. I'm getting the following error when trying to run my application .
{System.Windows.Markup.XamlParseException: The invocation of the constructor on type 'Telerik.Windows.Controls.RadGridView' that matches the specified binding constraints threw an exception. [Line: 23 Position: 33] ---> System.MissingMethodException: Method not found: 'Void Telerik.Windows.Data.Selection.ItemSelectionHandler..ctor(Telerik.Windows.Data.DataItemCollection, Telerik.Windows.Data.Selection.ISelector, Boolean)'.
at Telerik.Windows.Controls.GridView.GridViewDataControl.InitializeSelection()
at Telerik.Windows.Controls.DataControl..ctor()
at Telerik.Windows.Controls.GridView.BaseItemsControl..ctor()
at Telerik.Windows.Controls.GridView.GridViewDataControl..ctor()
at Telerik.Windows.Controls.RadGridView..ctor()
--- End of inner exception stack trace ---
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at TVSilverlightApplication.TVList.InitializeComponent()
at TVSilverlightApplication.TVList..ctor()}
my XAML file looks like:
<navigation:Page x:Class="TVSilverlightApplication.TVList"
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"
mc:Ignorable="d"
xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
xmlns:SLA="clr-namespace:TVSilverlightApplication"
xmlns:TVList="clr-namespace:TVSilverlightApplication.ViewModel"
d:DesignWidth="640" d:DesignHeight="480"
Title="TV List" DataContext="{Binding}" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
<UserControl.Resources>
<TVList:TVViewModel x:Key="TVViewModel"/>
</UserControl.Resources>
<Grid x:Name="LayoutRoot" DataContext="{StaticResource TVViewModel}">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<telerik:RadGridView
HorizontalAlignment="Left"
Margin="10,10,0,0"
Name="radGridView1"
VerticalAlignment="Top"
ItemsSource="{Binding Path=TVS}"
SelectedItem="{Binding Path=currentTV}"
AutoGenerateColumns="True"
/>
</Grid>
</navigation:Page>
my ViewModel si working correctly because i tried the same code to bind a RadCombobox and is working correctly. Apparently i miss some xmlns but which one? Any help would be greatly appreciated and i have to admit Telerik has done a beautiful job to facilitate the binding silverlight to server site.
{System.Windows.Markup.XamlParseException: The invocation of the constructor on type 'Telerik.Windows.Controls.RadGridView' that matches the specified binding constraints threw an exception. [Line: 23 Position: 33] ---> System.MissingMethodException: Method not found: 'Void Telerik.Windows.Data.Selection.ItemSelectionHandler..ctor(Telerik.Windows.Data.DataItemCollection, Telerik.Windows.Data.Selection.ISelector, Boolean)'.
at Telerik.Windows.Controls.GridView.GridViewDataControl.InitializeSelection()
at Telerik.Windows.Controls.DataControl..ctor()
at Telerik.Windows.Controls.GridView.BaseItemsControl..ctor()
at Telerik.Windows.Controls.GridView.GridViewDataControl..ctor()
at Telerik.Windows.Controls.RadGridView..ctor()
--- End of inner exception stack trace ---
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at TVSilverlightApplication.TVList.InitializeComponent()
at TVSilverlightApplication.TVList..ctor()}
my XAML file looks like:
<navigation:Page x:Class="TVSilverlightApplication.TVList"
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"
mc:Ignorable="d"
xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
xmlns:SLA="clr-namespace:TVSilverlightApplication"
xmlns:TVList="clr-namespace:TVSilverlightApplication.ViewModel"
d:DesignWidth="640" d:DesignHeight="480"
Title="TV List" DataContext="{Binding}" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
<UserControl.Resources>
<TVList:TVViewModel x:Key="TVViewModel"/>
</UserControl.Resources>
<Grid x:Name="LayoutRoot" DataContext="{StaticResource TVViewModel}">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<telerik:RadGridView
HorizontalAlignment="Left"
Margin="10,10,0,0"
Name="radGridView1"
VerticalAlignment="Top"
ItemsSource="{Binding Path=TVS}"
SelectedItem="{Binding Path=currentTV}"
AutoGenerateColumns="True"
/>
</Grid>
</navigation:Page>
my ViewModel si working correctly because i tried the same code to bind a RadCombobox and is working correctly. Apparently i miss some xmlns but which one? Any help would be greatly appreciated and i have to admit Telerik has done a beautiful job to facilitate the binding silverlight to server site.