This is very unfortunate as CommandArgument is very convinient place for Eval("SomeDataField"). That way finding what was clicked would be very easy in ItemCommand and simmilar events (Delete, Insert...). Please consider this as nice feature for future implementations.
Regards,
Alex
PS
Finding what recordID is associated with ItemCommand is very dificult. This is what I do. Please correct if wrong:
Select Case e.CommandName |
Case "CheckDeleted" |
Dim objItem As Telerik.Web.UI.GridDataItem = e.Item |
Dim intRankID As Integer = _ |
CInt(Regex.Match(Mid(objItem.KeyValues, _ |
objItem.KeyValues.LastIndexOf(":") + 3), "[0-9]{1,}").Value) |
'The rest of the code goes here, now when I know |
'what KeyValue was clicked on and caused postback (ItemCommand) |
Case "InitInsert" |
'.... |
End Select |