My grid has a Delete GridButtonColumn, defined as follows...
<telerik:GridButtonColumn CommandName="Delete" |
ConfirmText="Are you sure you want to delete the selected item?" Text="Delete" |
UniqueName="Delete"> |
</telerik:GridButtonColumn> |
I get the Cofirmation Text, and I delete the row server-side with this...
Protected Sub RadGridPO_DeleteCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGridPO.DeleteCommand |
Dim item As GridEditableItem = CType(e.Item, GridEditableItem) |
Dim strKey As String = item.OwnerTableView.DataKeyValues(e.Item.ItemIndex).Item("PODetailKey").ToString |
Dim changedRow As DataRow() = POGridData.Select("PODetailKey = " & strKey) |
If changedRow.Length <> 0 Then |
changedRow(0).Delete() |
End If |
End Sub |
But I need to call a javascript function afterwards. I tried using OnRowDeleted in the RadGrid's ClientSettings, but it doesn't work...
<ClientSettings> |
<Selecting AllowRowSelect="True" /> |
<ClientEvents OnRowSelected="RowSelected" OnRowDeleted="RowDeleted" /> |
</ClientSettings> |
(Though it doesn't give me an error either.) How can I call a javascript function after the row is deleted?