I have a user control that contains 2 Prometheus radGrids, rgInsuredInfo and rgOwnerInfo. Each of the radGrids has an Edit button that will display a user control that allows the user to make some changes. But when I click on the Edit button in the second radGrid (rgOwnerInfo), the entire radGrid disappears. The first radGrid works fine if I click the Edit button. Is there a problem with having 2 radGrids with Edit buttons on the same user control?
Here is the markup:
<
table style="width:96%;" align="center">
<tr>
<td>
<telerik:RadGrid ID="rgInsuredInfo"
runat="server"
AutoGenerateColumns="False"
SkinID="GridSkin"
GridLines="None"
AllowPaging="true"
AllowSorting="true"
PagerStyle-Mode="NextPrevAndNumeric"
PageSize="20"
GroupingSettings-CaseSensitive="false">
<MasterTableView GridLines="both"
Name="Master1"
Width="100%"
CommandItemDisplay="Top"
DataKeyNames="EntityID"
HierarchyDefaultExpanded="true"
AllowFilteringByColumn="True" >
<RowIndicatorColumn Visible="False">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<ExpandCollapseColumn Resizable="False">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
<Columns>
<telerik:GridBoundColumn UniqueName="EntityID" DataField="EntityID" Visible="false"
ReadOnly="True">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="LegalFullName" HeaderText="Name" DataField="LegalFullName">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="EntityRelatedTypeDesc" HeaderText="Type" DataField="EntityRelatedTypeDesc">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="GenderDesc" HeaderText="Gender" DataField="GenderDesc">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="SmokerStatusDesc" HeaderText="Smoker" DataField="SmokerStatusDesc">
</telerik:GridBoundColumn>
<Telerik:GridEditCommandColumn UniqueName="EditCommandColumn1"
ButtonType="ImageButton"
EditImageUrl="../Images/icon-edit.gif">
</Telerik:GridEditCommandColumn>
<telerik:GridButtonColumn UniqueName="btnDelete"
ButtonType="ImageButton"
ImageUrl="../Images/icon-delete.gif"
ConfirmText="Do you really wish to delete this row?"
CommandName="Delete"
Text="Delete">
</telerik:GridButtonColumn>
<telerik:GridBoundColumn UniqueName="GenderEnumID" Visible="false" DataField="GenderEnumID">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="SmokerStatusEnumID" Visible="false" DataField="SmokerStatusEnumID">
</telerik:GridBoundColumn>
</Columns>
<EditFormSettings UserControlName="PolicyInfoDetails.ascx" EditFormType="WebUserControl">
<EditColumn UniqueName="EditCommandColumn1">
</EditColumn>
</EditFormSettings>
</MasterTableView>
</telerik:RadGrid>
</td>
</tr>
</table>
<
table style="width:96%;" align="center">
<tr>
<td>
<telerik:RadGrid ID="rgOwnerInfo"
runat="server"
AutoGenerateColumns="False"
SkinID="GridSkin"
GridLines="None"
AllowPaging="true"
AllowSorting="true"
PagerStyle-Mode="NextPrevAndNumeric"
PageSize="20"
GroupingSettings-CaseSensitive="false">
<MasterTableView GridLines="both"
Name="Master2"
Width="100%"
CommandItemDisplay="top"
DataKeyNames="EntityID"
HierarchyDefaultExpanded="true"
AllowFilteringByColumn="True">
<RowIndicatorColumn Visible="False">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<ExpandCollapseColumn Resizable="False">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
<Columns>
<telerik:GridBoundColumn UniqueName="EntityID" DataField="EntityID" Visible="false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="LegalFullName" HeaderText="Name" DataField="LegalFullName">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="OwnershipPct" HeaderText="Ownership" DataField="OwnershipPct" DataFormatString="{0:P}">
</telerik:GridBoundColumn>
<Telerik:GridEditCommandColumn UniqueName="EditOwner"
ButtonType="ImageButton"
EditImageUrl="../Images/icon-edit.gif">
</Telerik:GridEditCommandColumn>
</Columns>
<EditFormSettings UserControlName="PolicyInfoOwnerDetails.ascx" EditFormType="WebUserControl">
<EditColumn UniqueName="EditOwner">
</EditColumn>
</EditFormSettings>
</MasterTableView>
</telerik:RadGrid>
</td>
</tr>
</table>