Hi,
I have a simple RadGrid control.
For each data item in the Datasource I create a User Control.
The user control is determined at runtime according to the data-item (or data item id).
I use LoadControl function to load the control.
I want to add this control as a nested view template, so I can collapse/expand each row and edit the different controls.
Once I finish editing the controls - (all in client side), I hit a save button to persist all the information to database.
I will have to loop through the rows, get the user-control and execute a save function in it.
What would be the best practice to achieve this?
I started by adding NestedViewTemplate with a container panel to hold the various user controls.
This is how it looks like:
Thank you,
-Itye
I have a simple RadGrid control.
For each data item in the Datasource I create a User Control.
The user control is determined at runtime according to the data-item (or data item id).
I use LoadControl function to load the control.
I want to add this control as a nested view template, so I can collapse/expand each row and edit the different controls.
Once I finish editing the controls - (all in client side), I hit a save button to persist all the information to database.
I will have to loop through the rows, get the user-control and execute a save function in it.
What would be the best practice to achieve this?
I started by adding NestedViewTemplate with a container panel to hold the various user controls.
This is how it looks like:
<
MasterTableView
AutoGenerateColumns
=
"False"
DataKeyNames
=
"Id"
GroupLoadMode
=
"Client"
HierarchyLoadMode
=
"Client"
>
<
NestedViewTemplate
>
<
asp:Panel
runat
=
"server"
ID
=
"configControlContainer"
CssClass
=
"viewWrap"
Visible
=
"true"
>
</
asp:Panel
>
</
NestedViewTemplate
>
<
Columns
>
.
.
.
Thank you,
-Itye