Event trigger problem

Event trigger problem

Old forum URL: forums.lhotka.net/forums/t/8916.aspx


ambreshgaur posted on Wednesday, May 12, 2010

Here are 2 sample codes ........

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Sample 1 ...

<

 

custom:CDataGrid x:Name="dgWhseContainer"

 

Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2"

 

SelectionMode="Single"

 

AutoGenerateColumns="False" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Visible"

 

ItemsSource="{Binding Path=ContainerInfo}"

 

csla:InvokeMethod.TriggerEvent="SelectionChanged"

 

csla:InvokeMethod.MethodName="KeepInfoForSelectedRow"

 

csla:InvokeMethod.MethodParameter="{Binding RelativeSource={RelativeSource Self}, Path=SelectedItem}">

Sample 2 .....

<

 

custom:CDataGrid x:Name="dgWhseContainer"

 

Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2"

 

SelectionMode="Single"

 

AutoGenerateColumns="False" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Visible"

 

ItemsSource="{Binding Path=ContainerInfo}"

 

csla:InvokeMethod.TriggerEvent="SelectRowClicked"

 

csla:InvokeMethod.MethodName="KeepInfoForSelectedRow"

 

csla:InvokeMethod.MethodParameter="{Binding RelativeSource={RelativeSource Self}, Path=SelectedItem}">

Sample 1 ...has TriggerEvent = "SelectionChanged"

Sample 2 has TriggerEvent = "SelectRowClicked"

Sample 1 works but Sample2 gives error ...

Please Help

Ambresh

RockfordLhotka replied on Wednesday, May 12, 2010

What is the error?

ambreshgaur replied on Wednesday, May 12, 2010

Error  is.........AG_E_PARSER_BAD_PROPERTY_VALUE [Line: 163 Position: 59]

on same live of TriggerEvent .........looks like it doesnt accept ...."SelectRowClicked" event

Copyright (c) Marimer LLC