I have a hierachial grid with a master grid (grdAircraftMasterView) and two nested detail views (tblCrew, tblGear).
Edit Form Settings are set to Template in all three views.
in tblCrew's edit template is a button with a command name of "SignUp" and command arguments of: DataBinder Eval(Container, "ItemIndex")
When this button is clicked the program jumps to the grids item command and processed through the 'SignUp' portion.
However e.Item is GridDataItem and e.Item.IsInEditMode = false. I cannot reference the editform template.FindControl to get the user input. Additionally, the tblCrew row does not move out of edit mode and the edit template form remains open.
How do I reference the detail views editformtemplate, retreive the user input from a control, and then set the detail rows IsInEditMode to false?
Thanks in advance
David
Edit Form Settings are set to Template in all three views.
in tblCrew's edit template is a button with a command name of "SignUp" and command arguments of: DataBinder Eval(Container, "ItemIndex")
When this button is clicked the program jumps to the grids item command and processed through the 'SignUp' portion.
However e.Item is GridDataItem and e.Item.IsInEditMode = false. I cannot reference the editform template.FindControl to get the user input. Additionally, the tblCrew row does not move out of edit mode and the edit template form remains open.
item.EditFormItem.IsInEditMode is true
How do I reference the detail views editformtemplate, retreive the user input from a control, and then set the detail rows IsInEditMode to false?
Thanks in advance
David
<
telerik:RadGrid
ID
=
"rgdAircraft"
runat
=
"server"
AllowSorting
=
"false"
GridLines
=
"Both"
AutoGenerateColumns
=
"false"
OnItemCommand
=
"rgdAircraft_ItemCommand"
OnNeedDataSource
=
"rgdAircraft_NeedDataSource"
Skin
=
"Web20"
AllowMultiRowSelection
=
"false"
OnPreRender
=
"rgdAircraft_PreRender"
OnDetailTableDataBind
=
"rgdAircraft_DetailTableDataBind"
OnItemDataBound
=
"rgdAircraft_ItemDataBound"
>
<
MasterTableView
EnableHierarchyExpandAll
=
"true"
DataKeyNames
=
"strFlightId"
runat
=
"server"
CommandItemDisplay
=
"Bottom"
EditFormSettings-EditFormType
=
"Template"
CommandItemSettings-AddNewRecordText
=
"Add new Aircraft"
HierarchyLoadMode
=
"Client"
EditMode
=
"PopUp"
Name
=
"grdAircraftMasterView"
>
<
DetailTables
>
<
telerik:GridTableView
AutoGenerateColumns
=
"false"
TableLayout
=
"Auto"
DataKeyNames
=
"strFlightId"
Name
=
"tblCrew"
ShowFooter
=
"false"
Caption
=
"Aircrew"
Width
=
"100%"
CommandItemDisplay
=
"Bottom"
EditMode
=
"PopUp"
CommandItemSettings-AddNewRecordText
=
"Add new position"
>
<
EditFormSettings
EditFormType
=
"Template"
>
<
EditColumn
UniqueName
=
"intMissionCrew"
/>
<
FormTemplate
>
Already looked at the demo at http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/insert-update-delete-hierarchy/defaultcs.aspx, however this demo does not address controls within the edit template.