I have a radgrid using master detail hierarchy and I want to be able to disable the edit and insert commands depending on the user. Where is the best place/event to disable these commands? I am able to prevent the Insert command from being visible but can't find where to hide the Edit.
Protected Sub RadGrid1_ItemCreated(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemCreated
If (TypeOf e.Item Is GridCommandItem) Then
Dim commandItem As GridCommandItem = CType(e.Item, GridCommandItem)
commandItem.Visible = False
End If
End Sub