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

Rad GridView WPF 4.0

7 Answers 93 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Vikas
Top achievements
Rank 1
Vikas asked on 02 Jun 2015, 01:13 AM

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

Sort by
0
Dimitrina
Telerik team
answered on 02 Jun 2015, 07:47 AM
Hi Vikas,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Vikas
Top achievements
Rank 1
answered on 02 Jun 2015, 02:36 PM

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.

 

 

 

0
Dimitrina
Telerik team
answered on 02 Jun 2015, 02:53 PM
Hello,

You can read through the common topic on Setting a Theme (Using Implicit Styles) where the approach is explained in details.

Regards,
Dimitrina
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Vikas
Top achievements
Rank 1
answered on 02 Jun 2015, 09:12 PM

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

0
Dimitrina
Telerik team
answered on 03 Jun 2015, 08:27 AM
Hello Vikas,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Vikas
Top achievements
Rank 1
answered on 03 Jun 2015, 02:46 PM

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.

 

0
Maya
Telerik team
answered on 08 Jun 2015, 06:25 AM
Hi Vikas,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
GridView
Asked by
Vikas
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Vikas
Top achievements
Rank 1
Maya
Telerik team
Share this question
or