Hello,
I used RadTelerik to show an grid in grid, here is my code in aspx file:
<telerik:RadGrid runat="server" ID="gridModulesList" BorderStyle="None" BackColor="Transparent"
BorderColor="Transparent" AutoGenerateColumns="false" ShowHeader="false" Width="100%"
AutoPostBack="true" OnItemCommand="gridModulesList_ItemCommand">
<MasterTableView DataKeyNames="ID">
<NestedViewTemplate>
<asp:Panel runat="server" ID="PnModuleDetail">
<telerik:RadGrid ID="gridModuleDetail" runat="server" AutoGenerateColumns="false" ShowHeader="false" BorderWidth="0" Width="100%"
BackColor="White" OnItemDataBound="gridModuleDetail_ItemDataBound" OnItemCommand="gridModuleDetail_ItemCommand"
OnSelectedIndexChanged="gridModuleDetail_SelectedIndexChanged" OnNeedDataSource="gridModuleDetail_NeedDataSource">
<ClientSettings EnablePostBackOnRowClick="True" EnableRowHoverStyle="true" EnableAlternatingItems="true">
<Selecting AllowRowSelect="True" />
</ClientSettings>
<MasterTableView >
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
</RowIndicatorColumn>
<Columns>
<telerik:GridBoundColumn DataField="ID" UniqueName="ID" Visible="false">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn UniqueName="Name">
<ItemTemplate>
<asp:Label runat="server" ID="lblName"></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
</asp:Panel>
</NestedViewTemplate>
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
</RowIndicatorColumn>
<Columns>
<telerik:GridBoundColumn DataField="ID" UniqueName="ID" Visible="false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Name" UniqueName="Name" Visible="true">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
The problem is:
When I click on a item=> this item is selected and it's bold (item1)
I continue click on the other item item2=> item2 is selected and it's bold and item1 is still bold
Expected:
When I click on item2=> item1 is not selected and it's not BOLD
I used RadTelerik to show an grid in grid, here is my code in aspx file:
<telerik:RadGrid runat="server" ID="gridModulesList" BorderStyle="None" BackColor="Transparent"
BorderColor="Transparent" AutoGenerateColumns="false" ShowHeader="false" Width="100%"
AutoPostBack="true" OnItemCommand="gridModulesList_ItemCommand">
<MasterTableView DataKeyNames="ID">
<NestedViewTemplate>
<asp:Panel runat="server" ID="PnModuleDetail">
<telerik:RadGrid ID="gridModuleDetail" runat="server" AutoGenerateColumns="false" ShowHeader="false" BorderWidth="0" Width="100%"
BackColor="White" OnItemDataBound="gridModuleDetail_ItemDataBound" OnItemCommand="gridModuleDetail_ItemCommand"
OnSelectedIndexChanged="gridModuleDetail_SelectedIndexChanged" OnNeedDataSource="gridModuleDetail_NeedDataSource">
<ClientSettings EnablePostBackOnRowClick="True" EnableRowHoverStyle="true" EnableAlternatingItems="true">
<Selecting AllowRowSelect="True" />
</ClientSettings>
<MasterTableView >
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
</RowIndicatorColumn>
<Columns>
<telerik:GridBoundColumn DataField="ID" UniqueName="ID" Visible="false">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn UniqueName="Name">
<ItemTemplate>
<asp:Label runat="server" ID="lblName"></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
</asp:Panel>
</NestedViewTemplate>
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
</RowIndicatorColumn>
<Columns>
<telerik:GridBoundColumn DataField="ID" UniqueName="ID" Visible="false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Name" UniqueName="Name" Visible="true">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
The problem is:
When I click on a item=> this item is selected and it's bold (item1)
I continue click on the other item item2=> item2 is selected and it's bold and item1 is still bold
Expected:
When I click on item2=> item1 is not selected and it's not BOLD