Attachin event

Dec 16, 2011 at 2:34 PM

Hello,

I've got a WPF project with a workspace view model, a RadDocking and insidea view .

In the View I've got a radgridview and there's a column with a checkbox... when I click on it I got

No target found for method ToggleCheckbox.

 <telerik:RadBusyIndicator IsBusy="{Binding IsBusy}">
        <Grid cal:View.Model="{Binding}">
            
            <Grid.RowDefinitions>
                <RowDefinition Height="*"></RowDefinition>
                <RowDefinition Height="0"></RowDefinition>
            </Grid.RowDefinitions>
            <telerik:RadGridView x:Name="ResultGrid" Grid.Row="0" ItemsSource="{Binding ResultList, Mode=TwoWay}" AutoGenerateColumns="False"
                    CanUserInsertRows="False" CanUserDeleteRows="False"  
                    ShowColumnFooters="True" AlternateRowBackground="#FFEFF7FC" AlternationCount="2">
                <telerik:RadContextMenu.ContextMenu>
                    <telerik:RadContextMenu x:Name="ContextMenu" >
                        <telerik:RadMenuItem Header="Refresh" Tag="refresh" cal:Message.Attach="Prova($dataContext)"></telerik:RadMenuItem>
                    </telerik:RadContextMenu>
                </telerik:RadContextMenu.ContextMenu>
                <telerik:RadGridView.Columns>
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding CODICE}" Header="Dossier" UniqueName="Dossier" IsReadOnly="True" >
                        <telerik:GridViewDataColumn.AggregateFunctions>
                            <telerik:CountFunction Caption="Totale:"></telerik:CountFunction>
                        </telerik:GridViewDataColumn.AggregateFunctions>
                    </telerik:GridViewDataColumn>
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding INTESTAZIONE_CLIENTE}" Width="250" Header="Intestazione" UniqueName="Intestazione" IsReadOnly="True">
                        <telerik:GridViewDataColumn.CellEditTemplate>
                            <DataTemplate>
                                <Grid>
                                    <TextBlock Text="{Binding INTESTAZIONE_CLIENTE}" ToolTipService.ToolTip="{Binding INTESTAZIONE_CLIENTE}"/>
                                    <Border VerticalAlignment="Top"  ToolTipService.ToolTip="{Binding INTESTAZIONE_CLIENTE}" HorizontalAlignment="Right" Background="Red" Visibility="{Binding Comment,Converter={StaticResource MyConverter}}" Width="5" Height="5"/>
                                </Grid>
                            </DataTemplate>
                        </telerik:GridViewDataColumn.CellEditTemplate>
                    </telerik:GridViewDataColumn>
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding FLAG_SI_NO}" Header="Spedire" UniqueName="" >
                        <telerik:GridViewDataColumn.CellTemplate>
                            <DataTemplate>
                                <CheckBox IsChecked="{Binding FLAG_SI_NO, Mode=TwoWay}" cal:Message.Attach="ToggleCheckbox($dataContext)" HorizontalAlignment="Center">
                                </CheckBox>
                            </DataTemplate>
                        </telerik:GridViewDataColumn.CellTemplate>
                    </telerik:GridViewDataColumn>
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding LAYOUT}" Header="Layout" UniqueName="Layout" IsReadOnly="True">
                    </telerik:GridViewDataColumn>
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding MEZZO_COMUNICAZIONE}" Header="Tipo Invio" UniqueName="TipoInvio" IsReadOnly="True"></telerik:GridViewDataColumn>
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding INDIRIZZO}" Width="300" Header="Indirizzo" UniqueName="Indirizzo" IsReadOnly="True"></telerik:GridViewDataColumn>
                </telerik:RadGridView.Columns>
            </telerik:RadGridView>
            <telerik:RadRichTextBox x:Name="RadRichTextBox1" Grid.Row="1" />

The ToggleCheckbox is found in the Workspaceviewmodel ... don't know how to tell CM to search inside my view
any suggestion? if I load my viewmodel directly from the boostrapper it works...
Thanks