I want to render some Javascript using ScriptManager.RegisterClientScriptBlock() whenever there's a edit form visible. I also need the Client IDs of the controls in the edit form. Right now I can look for RadGrid.EditItems.Count > 0 inside OnPreRender() to determine when the grid is in edit mode, and then use that to fetch all the controls using FindControl().
But this doesn't work in Insert mode. RadGrid.EditItems is empty. What's the propery way to do what I want to do?
But this doesn't work in Insert mode. RadGrid.EditItems is empty. What's the propery way to do what I want to do?