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

WPF RadGridView MVVM question

1 Answer 86 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 07 Aug 2013, 02:23 AM
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.

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 08 Aug 2013, 06:30 AM
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 >>
Tags
GridView
Asked by
Chris
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or