Hi,
Trying to find a way to hide the
<telerik:GridEditCommandColumn UniqueName="EditCommandColumn" EditText="Notes"></telerik:GridEditCommandColumn>
if a person doe snot have admin privledges, I see lots of examples for other buttons and controls but so far not this way.
Trying to find a way to hide the
<telerik:GridEditCommandColumn UniqueName="EditCommandColumn" EditText="Notes"></telerik:GridEditCommandColumn>
if a person doe snot have admin privledges, I see lots of examples for other buttons and controls but so far not this way.
Protected Sub myRadGrid_ItemDataBound(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles myRadGrid.ItemDataBound
If TypeOf e.Item Is GridEditFormItem AndAlso e.Item.IsInEditMode Then
Dim EditFormcmdItem As GridEditFormItem = DirectCast(e.Item, GridEditFormItem)
If checkAdmin() = False Then
EditFormcmdItem.FindControl("EditCommandColumn").Visible = False
End If
End If
End Sub