9 Answers, 1 is accepted
May you verify that you have added the full list of references related to RadGridView in your project?
Since you have added references to the assembliesTelerik.Windows.Controls, Telerik.Windows.Data, Telerik.Windows.Controls.Input and Telerik.Windows.Controls.GridView you should not get such error.
Plese check this and let me know whether the issue still persists.
Vanya Pavlova
the Telerik team
The tag 'RadGridView' does not exist in XML namespace 'http://schemas.telerik.com/2008/xaml/presentation;clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView'. Line 20 Position 10.
This is the code on my XAML.
<Page x:Class="Zachys.PriceCardsWPF.PriceEvents"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
d:DesignHeight="599" d:DesignWidth="845"
Title="PriceEvents" OpacityMask="{x:Null}" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation;clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView">
<Grid>
<Label Content="Sale Events" Height="Auto" HorizontalAlignment="Left" Margin="12,1,0,0" Name="lblSales" VerticalAlignment="Top" Width="Auto" Foreground="#FFCBC8C8" FontWeight="Bold" FontSize="24" OpacityMask="{x:Null}" />
<DocumentViewer Margin="12,0,12,12" Name="priceCardViewer" Height="256" VerticalAlignment="Bottom" Panel.ZIndex="1" />
<Label Height="28" HorizontalAlignment="Left" Margin="434,5,0,0" Name="lblEvent" VerticalAlignment="Top" Width="70" FontSize="16" FontWeight="Bold" Foreground="#FFAAA1A1" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" />
<RadioButton Content="Boat" Height="28" HorizontalAlignment="Right" Margin="0,10,241,0" Name="radBoat" VerticalAlignment="Top" ClickMode="Press" FontSize="16" Checked="radBoat_Checked" Width="70" />
<RadioButton Content="Floor" Height="28" HorizontalAlignment="Left" Margin="590,10,0,0" Name="radFloor" VerticalAlignment="Top" VerticalContentAlignment="Top" FontSize="16" Checked="radFloor_Checked" Width="70" />
<RadioButton Content="Shelf" Height="28" HorizontalAlignment="Left" Margin="663,10,0,0" Name="radShelf" VerticalAlignment="Top" FontSize="16" Checked="radShelf_Checked" Width="70" />
<Button Content="Submit" Height="Auto" HorizontalAlignment="Left" Margin="749,7,0,0" Name="btnPrint" VerticalAlignment="Top" Width="Auto" FontSize="16" Click="btnPrint_Click" />
<Label Content="Selected Event:" Height="28" HorizontalAlignment="Left" Margin="314,5,0,0" Name="label1" VerticalAlignment="Top" Width="130" VerticalContentAlignment="Center" HorizontalContentAlignment="Right" Foreground="#FF8D8989" FontSize="16" FontWeight="Bold" />
<telerik:RadGridView Margin="12,43,12,0" Name="gvEvents" VerticalAlignment="Top" Height="108" MaxHeight="146" AutoGenerateColumns="False" CanUserSelect="{Binding IsChecked, ElementName=CanUserSelectCheckBox, Mode=TwoWay}" IsReadOnly="True" SelectionUnit="FullRow" SelectionMode="{Binding SelectedItem, ElementName=selectionModeCombo, Mode=TwoWay}" SelectedItem="{Binding SelectedItem, ElementName=selectedItemCombo, Mode=TwoWay}" CurrentItem="{Binding SelectedItem, ElementName=currentItemCombo, Mode=TwoWay}" MouseDoubleClick="gvEvents_MouseDoubleClick" Padding="0" ShowGroupPanel="False" Panel.ZIndex="-1">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn UniqueName="Codes" Header="EventCodes" />
<telerik:GridViewDataColumn UniqueName="ItemCounts" Header="Item Counts" />
<telerik:GridViewDataColumn UniqueName="Name" Header="Event Name" Width="300" />
<telerik:GridViewDataColumn UniqueName="FromDate" Header="Start Date" Width="100"/>
<telerik:GridViewDataColumn UniqueName="ToDate" Header="End Date" Width="100"/>
</telerik:RadGridView.Columns>
</telerik:RadGridView>
</Grid>
</Page>
You are getting this error, because you have mixed the namespaces you should use.
Please use either this one:
xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
or the recommended URI namespace:
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
Vanya Pavlova
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
after updating latest dlls my application gives same error
"Error 33 The tag 'RadGridView' does not exist in XML namespace 'http://schemas.telerik.com/2008/xaml/presentation'. TestApp_1\MainPage.xaml 11 10 TestApp_1
"
i have used
xmlns
:telerik="http://schemas.telerik.com/2008/xaml/presentation"
to add reference of telerik on xaml page.
Is it required to have silverlight 5 version with latest telerik controls ?
Can you confirm version of the Telerik binaries you are referring?
Kind regards,
Yordanka
the Telerik team
but eventhougth im getting exception like Error 1 The type or namespace name 'RadGridView' could not be found (are you missing a using directive or an assembly reference?) E:\ADP\SilverlightSamples\DataGrid Data Binding\DataGridBindingSample\DataGridBindingSample\DataGridBindingSample\obj\Debug\TelerikGrid.g.cs 40 18 DataGridBindingSample
so i added required namespace for 3 times
again i got exception like
Error 2 The tag 'GridViewDataColumn' does not exist in XML namespace 'http://schemas.telerik.com/2008/xaml/presentation'. E:\ADP\SilverlightSamples\DataGrid Data Binding\DataGridBindingSample\DataGridBindingSample\DataGridBindingSample\TelerikGrid.xaml 15 18 DataGridBindingSample
Error 3 The tag 'GridViewDataColumn' does not exist in XML namespace 'http://schemas.telerik.com/2008/xaml/presentation'. E:\ADP\SilverlightSamples\DataGrid Data Binding\DataGridBindingSample\DataGridBindingSample\DataGridBindingSample\TelerikGrid.xaml 16 18 DataGridBindingSample
Error 1 The tag 'RadGridView' does not exist in XML namespace 'http://schemas.telerik.com/2008/xaml/presentation'. E:\ADP\SilverlightSamples\DataGrid Data Binding\DataGridBindingSample\DataGridBindingSample\DataGridBindingSample\TelerikGrid.xaml 13 10 DataGridBindingSample
so please reply me as soon as you can.
here is my source code
Thanks
Rajesh KS
What I could suggest you is to check if all the referenced assemblies are with the same version. If you still get this error then delete all project references to Telerik controls and remove all Telerik assemblies that are located in your project's folder. After that add the assemblies to the project again, Clean and Rebuild.
I hope this solves the problem.
Didie
the Telerik team