I have a usercontrol call myGrid. In that user control, I have a telerik radgrid that handles the ItemCommand event.
I add 5 of these user controls dynamically to another user control, in the PreRender event as so:
Private Sub CreateGrids()
GridsPanel.Controls.Clear()
For index As Integer = 0 To 4
Dim myUC As myGrid= LoadControl("~/controls/myGrid.ascx")
myUC.ID = "myGrid" + index.ToString()
GridsPanel.Controls.Add(myUC)
Next
End Sub
The ItemCommand event of the RadGrid is not being fired... because the controls are dynamic... but I can't quite figure out how to get it to fire?
Go to the complete details ...