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

[Solved] Grid EventTrigger

4 Answers 155 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Forest
Top achievements
Rank 1
Forest asked on 15 Nov 2010, 04:29 PM
Hi,

I had to use an EventTrigger with my GridView.
It works when i don't use a child GridView :

<i:Interaction.Triggers>

 

 

 

 

    <i:EventTrigger EventName="RowEditEnded">

 

 

 

 

        <i:InvokeCommandAction Command="{Binding SelectedRowUpdateCommand}"/>

 

 

 

 

    </i:EventTrigger>

 

 

 

 

</i:Interaction.Triggers>

 


But if is use this in a child GridView it doesn't works.
Have you got some news about this ?

Thanks

Mathieu

4 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 15 Nov 2010, 05:51 PM
Hello Forest,

Basically, RowEditEnded is a RoutedEvent, but its routed strategy is Direct, meaning it will not be fired for other grid than the one it is subscribed to. So, if you want your command to be executed for each RadGridView, you may need to create a corresponding EventTrigger for each one.
 

Greetings,
Maya
the Telerik team
See What's New in RadControls for Silverlight in Q3 2010 on Tuesday, November 16, 2010 11:00 AM - 12:00 PM EST or 10:00 PM - 11:00 PM EST: Register here>>
0
Forest
Top achievements
Rank 1
answered on 16 Nov 2010, 09:40 AM
Hi

Thanks for responding.

I created an event trigger for my child GridView but it doesn't work.
Do you know if It's supported by RadGridView ?

Mathieu
0
Maya
Telerik team
answered on 16 Nov 2010, 10:54 AM
Hello Forest,

I am sending you a sample project illustrating a possible approach for triggering the RowEditEnded.
Let me know if it corresponds to your requirements.
  

All the best,
Maya
the Telerik team
See What's New in RadControls for Silverlight in Q3 2010 on Tuesday, November 16, 2010 11:00 AM - 12:00 PM EST or 10:00 PM - 11:00 PM EST: Register here>>
0
Forest
Top achievements
Rank 1
answered on 16 Nov 2010, 03:13 PM
Hello Maia

It works !
I forgot to get the Source of my Command.

Thank you so much ! :)

Mathieu
Tags
GridView
Asked by
Forest
Top achievements
Rank 1
Answers by
Maya
Telerik team
Forest
Top achievements
Rank 1
Share this question
or