Hi Jeff,
I'm sorry I didn't understand the original scenario. Actually you don't have to hide the edit form user control by code. This behavior is internal for
RadGrid. All you need to do is set the proper
CommandName for the
RadToolBarButton.
The
RadToolBar1_ButtonClick event handler is needed for the
RadToolBar to make a postback. The
RadToolBar in the Service Pack release (scheduled for the end of this week) will contain an
AutoPostBack property, which will make the need of
ButtonClick event handler assignment obsolete.
Please, find attached a demo page I just created.
Let me know if that helps.
Kind regards,
Erjan Gavalji
the Telerik team