WPF RadGridView MVVM question

2 posts, 0 answers
  1. Chris
    Chris avatar
    1 posts
    Member since:
    Feb 2013

    Posted 06 Aug 2013 Link to this post

    Hi, 

    I'm trying to implement the example I found (shown below). 


    <
    i:Interaction.Triggers>
      <i:EventTrigger EventName="RowEditEnded">
        <i:InvokeCommandAction
          Command="{Binding SaveSelectedProjectCommand}"
          CommandParameter="{Binding ElementName=grdProjects, Path=SelectedItem}" />
       </i:EventTrigger>
    </i:Interaction.Triggers>

    But it doesn't work, obviously because I don't have the <i: initiated as
    anything, but in the responses by TELERIK in this thread 
    http://www.telerik.com/community/forums/wpf/gridview/calling-command-on-roweditended-for-mvvm.aspx 
    They don't specify anything (they speak as though copying
    and pasting that should work). So what am I supposed to import/instantiate to get it to work?




    Thanks,

    Chris.
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 08 Aug 2013 Link to this post

    Hi Chris,

    Once you search for keywords like Interaction, Triggers, EventTrigger, InvokeCommandAction, you will find the reference you need to use - System.Windows.Interactivity.dll.
    Please check one of the following resources for more information:
    1. Blend option
    2. Behaviors and Triggers in Silverlight
    3. Using-EventTrigger-in-XAML-for-MVVM-No-Code-Behind
    4. System.Windows.Interactivity Namespace

    Let me know in case you have any more troubles with the implementation.

    Regards,
    Maya
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top