Hello,
I'm having an issue with a custom command item that I have added. Below is the code used to add this command:
(I need to add this dynamically because not all users will be allowed to delete.)
How can I get this control to be handled by the RadGrid_ItemCommand Handler?
Thank you,
Kevin
I'm having an issue with a custom command item that I have added. Below is the code used to add this command:
(I need to add this dynamically because not all users will be allowed to delete.)
If (TypeOf e.Item Is GridCommandItem) Then Dim btnDelete = New LinkButton() btnDelete.ID = "btnDelete" btnDelete.Text = " Delete" btnDelete.CommandName = "Delete" btnDelete.Attributes("onclick") = "javascript:return confirm('Do you want to delete this item?')" Dim cmdItem As GridCommandItem = CType(e.Item, GridCommandItem) cmdItem.Controls(0).Controls(0).Controls(0).Controls(0).Controls.Add(btnDelete) End IfHow can I get this control to be handled by the RadGrid_ItemCommand Handler?
Thank you,
Kevin