This example shows how:
- One can adopt user controls as RadGrid's edit/insert forms.
Telerik RadGrid supports custom edit forms for management of item content. You can
switch the type of the edit forms using the GridEditFormType Enumeration.
In the example above the edit form is a WebUserControl specified by the UserControlName
property. The same user control will be used for the insert form as well. The user
control implements a public DataItem property through which Telerik RadGrid
sets the correct values for the editor controls (when loading the user control).
This allows the developer to write binding expressions to bind the server controls
in the user control to the corresponding DataItem.
Note that WebUserControl custom edit form is not supported with simple data-binding
(calling DataBind()). See the Simple data binding demo from the Populating
with data section for more info about the limitations of this binding mode.