Hi I am using RadGridView 4.0 for one of my application.
It was building successfully but at run-time I am getting exception - 'Set connection Id ...' , when I get into detail it is saying
Could not load file or assembly 'Telerik.Windows.Data, Version=2013.3.1016.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies. The system cannot find the file specified.
I am using the libraries from nuget package for WPF 4.0 [ RadControls.for.Wpf.40.2013.3.1016] - All same versions
Telerik.Windows.Controls
Telerik.Windows.Controls.GridView
Telerik.Windows.Controls.Input
Telerik.Windows.Controls.Navigation
Telerik.Windows.Data
Please respond ASAP as we have start UAT for our application, and it is giving errors on forms with telerik radgridview.
We are a licensed User of Telerik with customer Id ZS1376728
Quick Resolution Required or we have to switch to standard datagrid
Thanks & Regards,
Vikas Sharma
7 Answers, 1 is accepted
I am sorry to hear you experience such an issue. Do you have the error on your local machine?
In most of the cases the reason for that exception would be binary versions mismatch. All the referenced Telerik binaries should be same version, would you check that. And if this is not the issue - you can try to Clean/Rebuild the solution/project as well as delete bin/obj folders as might there be something cashed.
Let me know the outcome.
Regards,
Dimitrina
Telerik
Thanks for your suggestion ...... I will do as you said and update you.
Further recently I treid using the nuget packages for telerik controls, but I found that the gridview is not displaying though it is not giving error.
When I googled I found that I am referencing binaries with no xaml. Could you please explain me how to use the binaries with no xaml to display the gridview/rad context menu etc.
You can read through the common topic on Setting a Theme (Using Implicit Styles) where the approach is explained in details.
Regards,
Dimitrina
Telerik
Hi Using Implicit Theme I am able to display RadGridView and the data, but the Radcontent menu within the RadGridView is not coming up.
I have an ItemContainer style attached to the RadContextMenu.
Please suggest what else I need to do. i have included the following theme
Telerik.Windows.Controls.GridView.xaml
Telerik.Windows.Controls.Input.xaml
Telerik.Windows.Controls.Navigation.xaml
Telerik.Windows.Controls.xaml
Thanks
Vikas Sharma
In order to use RadContextMenu control in your projects you have to add references to the following assemblies:
1. Telerik.Windows.Controls.Navigation.dll
2. Telerik.Windows.Controls.dll
Would you please confirm you have merged all the respective resource dictionaries? Would you also clarify what do you mean that the "Radcontent menu within the RadGridView is not coming up"?
Regards,
Dimitrina
Telerik
I have already added the es of above noxaml references of mentioned libraries.
It is RadContextMenu not RadcontentMenu.
I am attaching RadContextMenu with RadGridView in the following manner
<telerik:RadGridView .... .. >
<telerik:RadContextMenu.ContextMenu>
<telerik:RadContextMenu x:Name="GridContextMenu" ItemsSource="{Binding ContextMenuActions}">
<telerik:RadContextMenu.ItemContainerStyle>
<Style TargetType="telerik:RadMenuItem">
<Setter Property="Header" Value="{Binding Name}"/>
<Setter Property="Command" Value="{Binding Action}"/>
<Setter Property="Foreground" Value="Brown"/>
<Setter Property="FontWeight" Value="Heavy"/>
</Style>
</telerik:RadContextMenu.ItemContainerStyle>
</telerik:RadContextMenu>
</telerik:RadContextMenu.ContextMenu>
It seems that it is binding the data correctly but somehow it is not being displayed in the UI.
Please suggest further.
When working with NoXaml binaries, you need to set BasedOn property for custom styles. In this case it should be:
<
Style
TargetType
=
"telerik:RadMenuItem"
BasedOn
=
"{StaticResource RadMenuItemStyle}"
>
More information can be found in "Setting a Theme (Using Implicit Styles)" article.
Regards,
Maya
Telerik