Hi,
I need your help to the following problem. I have a RadGrid which displays some records. Each record can be edit using PopUp Edit Form which is of type WebUserControl (see sample code below)
On Edit command I want to pass the selected grid row values into the userControl(MyControl.ascx ) using the setter methods exist on the userControl. My problem is how can I get an instance of the userControl inside the
Thanks
Pan
I need your help to the following problem. I have a RadGrid which displays some records. Each record can be edit using PopUp Edit Form which is of type WebUserControl (see sample code below)
<
telerik:RadGrid
ID
=
"grid"
runat
=
"server"
OnItemCreated
=
"grid_ItemCreated"
OnEditCommand
=
"grid_EditCommand"
AutoGenerateColumns
=
"False"
OnNeedDataSource
=
"grid_NeedDataSource"
>
<
MasterTableView
DataKeyNames
=
"Id"
EditMode
=
"PopUp"
EnableViewState
=
"true"
>
<
Columns
>
...
</
Columns
>
<
EditFormSettings
UserControlName
=
"~/MyControl.ascx"
EditFormType
=
"WebUserControl"
PopUpSettings-Modal
=
"true"
>
</
EditFormSettings
>
</
MasterTableView
>
</
telerik:RadGrid
>
On Edit command I want to pass the selected grid row values into the userControl(MyControl.ascx ) using the setter methods exist on the userControl. My problem is how can I get an instance of the userControl inside the
grid_EditCommand
in order to set the values.Thanks
Pan