Rad GridView WPF 4.0

8 posts, 0 answers
  1. Vikas
    Vikas avatar
    5 posts
    Member since:
    Sep 2013

    Posted 01 Jun 2015 Link to this post

    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

  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 02 Jun 2015 Link to this post

    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
  3. Vikas
    Vikas avatar
    5 posts
    Member since:
    Sep 2013

    Posted 02 Jun 2015 in reply to Dimitrina Link to this post

    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.

     

     

     

  4. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 02 Jun 2015 Link to this post

    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
  5. Vikas
    Vikas avatar
    5 posts
    Member since:
    Sep 2013

    Posted 02 Jun 2015 in reply to Dimitrina Link to this post

    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

  6. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 03 Jun 2015 Link to this post

    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
  7. Vikas
    Vikas avatar
    5 posts
    Member since:
    Sep 2013

    Posted 03 Jun 2015 in reply to Dimitrina Link to this post

    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.

     

  8. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 08 Jun 2015 Link to this post

    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
Back to Top