This question is locked. New answers and comments are not allowed.
I'm trying to figure out what event I should be using for a column that who's cell template is set to a button (this is in an sdk:Page).
The DeleteMiniButton DataTemplate is (this is in my App.xaml):
The button gets displayed in every row of my grid - this is good. Now how do I trap a user clicking the button from a specific row/column (or cell)? I can't find an appropriate event.
<telerik:RadGridView x:Name="ToDoListGridView" Margin="0" AreRowDetailsFrozen="True" AutoGenerateColumns="False" CanUserFreezeColumns="False" CanUserReorderColumns="False" CanUserResizeColumns="False" CanUserSortColumns="False" MinHeight="75" MaxHeight="155" RowIndicatorVisibility="Collapsed" ItemsSource="{Binding Path=ToDoLists, Mode=TwoWay}" ShowGroupPanel="False" IsReadOnly="True"> <telerik:RadGridView.Columns> <telerik:GridViewDataColumn Header="ToDoID" IsVisible="False" DataMemberBinding="{Binding ToDoMAPID}" /> <telerik:GridViewDataColumn Header="Date" MaxWidth="80" MinWidth="80" Width="80" DataMemberBinding="{Binding ToDoSystemDate}" TextAlignment="Right" DataFormatString="{}{0:d}" /> <telerik:GridViewDataColumn Header="Category" MaxWidth="110" MinWidth="110" Width="110" DataMemberBinding="{Binding ToDoClassDescription}" /> <telerik:GridViewDataColumn Header="Task/Note" MaxWidth="390" MinWidth="390" Width="390" DataMemberBinding="{Binding ToDoTask}" /> <telerik:GridViewDataColumn Header="Status" MaxWidth="80" MinWidth="80" Width="80" DataMemberBinding="{Binding ToDoStatusDescription}" /> <telerik:GridViewDataColumn Header="Priority" MaxWidth="75" MinWidth="75" Width="75" DataMemberBinding="{Binding ToDoPriorityDescription}" /> <telerik:GridViewColumn CellTemplate="{StaticResource DeleteMiniButton}" FooterTextAlignment="Center" IsResizable="False" IsGroupable="False" IsFilterable="False" MaxWidth="30" MinWidth="30" TextAlignment="Center" Width="30" Background="Transparent" HeaderTextAlignment="Center" IsSortable="False" IsReorderable="False" ShowDistinctFilters="False" /> </telerik:RadGridView.Columns></telerik:RadGridView>The DeleteMiniButton DataTemplate is (this is in my App.xaml):
<DataTemplate x:Key="DeleteMiniButton"> <Button Content="X" Padding="2" FontWeight="Bold" FontSize="12" Template="{StaticResource RedDeleteButton}" ToolTipService.ToolTip="Delete Entry" Cursor="Hand" /></DataTemplate>The button gets displayed in every row of my grid - this is good. Now how do I trap a user clicking the button from a specific row/column (or cell)? I can't find an appropriate event.