I have a GridButtonColumn and I'm wondering if it's possible to call a method in my C# code-behind.
I have this GridButtonColumn and I tried to set the OnDeleteCommand to call my method but it's not firing.
Delete Method I wish to call:
Is it at all possible to get this method to run after the user confirms the delete message button?
I have this GridButtonColumn and I tried to set the OnDeleteCommand to call my method but it's not firing.
| <telerik:GridButtonColumn UniqueName="DeleteColumn" ConfirmText="Delete this Group?" ConfirmDialogType="RadWindow" |
| ConfirmTitle="Delete" ButtonType="ImageButton" Text="Delete" ItemStyle-HorizontalAlign="Right" |
| ItemStyle-Width="10px" CommandName="Delete"></telerik:GridButtonColumn> |
Delete Method I wish to call:
| protected void rgAuthGroups_Delete(object source, Telerik.Web.UI.GridCommandEventArgs e) |
| { |
| GridDataItem item = (GridDataItem)e.Item; |
| int groupID = Convert.ToInt32(item["idColumn"].Text); |
| GroupFactory.DeleteGroup(groupID); |
| } |
Is it at all possible to get this method to run after the user confirms the delete message button?