Below is a portion of my grid, which uses a DetailTable with its own CommandItemTemplate
<
DetailTables
>
<
telerik:GridTableView
Name
=
"PersonConditionGrid"
runat
=
"server"
DataKeyNames
=
"PersonConditionId"
Caption
=
"Conditions linked with this Person"
DataSourceID
=
"PersonConditionViewDataSrcId"
TableLayout
=
"Auto"
Width
=
"580px"
AutoGenerateColumns
=
"false"
CommandItemDisplay
=
"Top"
ShowFooter
=
"true"
FooterStyle-BorderStyle
=
"Solid"
FooterStyle-BorderWidth
=
"2pt"
>
<
ParentTableRelation
>
<
telerik:GridRelationFields
DetailKeyField
=
"PersonId"
MasterKeyField
=
"PersonId"
/>
</
ParentTableRelation
>
<
HeaderStyle
Font-Bold
=
"true"
/>
<
CommandItemTemplate
>
<
table
width
=
"100%"
>
<
tr
>
<
td
align
=
"left"
>
<
asp:LinkButton
ID
=
"btnAddNew"
runat
=
"server"
CommandName
=
"InitInsert"
><
asp:Image
ID
=
"imgAddNew"
runat
=
"server"
ImageUrl
=
"~/Images/button-New-24.gif"
/> Add New Condition</
asp:LinkButton
>
<
asp:LinkButton
ID
=
"btnSaveNew"
runat
=
"server"
CommandName
=
"PerformInsert"
ValidationGroup
=
"EntryClass_VG"
><
asp:Image
ID
=
"imgSaveNew"
runat
=
"server"
ImageUrl
=
"~/Images/button-Save-24.gif"
/> Save Condition</
asp:LinkButton
>
<
asp:LinkButton
ID
=
"btnEdit"
runat
=
"server"
CommandName
=
"EditSelected"
><
asp:Image
ID
=
"imgEdit"
runat
=
"server"
ImageUrl
=
"~/Images/button-Edit-24.gif"
/> Take Action on Condition</
asp:LinkButton
>
<
asp:LinkButton
ID
=
"btnSaveEdit"
runat
=
"server"
CommandName
=
"UpdateEdited"
ValidationGroup
=
"EntryClass_VG"
><
asp:Image
ID
=
"imgSaveEdit"
runat
=
"server"
ImageUrl
=
"~/Images/button-Save-24.gif"
/> Save Condition</
asp:LinkButton
>
<
asp:LinkButton
ID
=
"btnCancel"
runat
=
"server"
CommandName
=
"CancelAll"
CausesValidation
=
"false"
><
asp:Image
ID
=
"imgCancel"
runat
=
"server"
ImageUrl
=
"~/Images/button-Cancel-24.gif"
/> Cancel Edit</
asp:LinkButton
>
<
asp:LinkButton
ID
=
"btnDelete"
runat
=
"server"
CommandName
=
"DeleteSelected"
OnClientClick
=
"return confirm('Are you sure you want to delete the selected record?');"
><
asp:Image
ID
=
"imgDelete"
runat
=
"server"
ImageUrl
=
"~/Images/button-Del-24.gif"
/> Delete Condition</
asp:LinkButton
>
</
td
>
</
tr
>
</
table
>
</
CommandItemTemplate
>
<
Columns
>
<
telerik:GridTemplateColumn
UniqueName
=
"SiteAccessConditionName"
HeaderText
=
"Access Condition Name"
HeaderStyle-Width
=
"200px"
HeaderStyle-HorizontalAlign
=
"Center"
>
<
ItemTemplate
>
After a Save operation, the detailTable remains open, with the new item displayed in the grid (as expected).
After a Cancel or Delete operation, the DetailsTable collapses and the user has to expand the item again.
Is there some way to prevent the DetailTable from collapsing after the Cancel or Delete operation?