I have Grid with NedtedViewTemplate, when i expand an row everythink works fine, but collapsing not working.
If i click another row, the first is collapsing automaticaly, it`s imposible to expand two rows in one time, and also can`t collaps any row. Please help me with it.
Code below-
<telerik:RadGrid runat="server" ID="rgBase" OnNeedDataSource="rgBase_OnNeedDataSource" AutoGenerateColumns="false">
<MasterTableView EditMode="InPlace" AllowFilteringByColumn="true" ExpandCollapseColumn-Display="true" EnableViewState="false" AllowNaturalSort="false" AllowMultiColumnSorting="false" HierarchyLoadMode="ServerOnDemand" TableLayout="Fixed" Width="100%">
<NestedViewTemplate>
<asp:Label ID="lName" Text='<%# Eval("new_materialid") %>' runat="server" Visible="true"></asp:Label>
</NestedViewTemplate>
<Columns>
<telerik:GridTemplateColumn HeaderText="Column1" AllowFiltering="false" SortExpression="qty" UniqueName="qty" >
<ItemTemplate>
<asp:Label ID="lQTY" Text='<%# Eval("qty") %>' runat="server"></asp:Label>
</ItemTemplate>
<ItemStyle CssClass="gridItem" HorizontalAlign="Left" />
<HeaderStyle CssClass="gridHeader" Width="110" HorizontalAlign="Left"/>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Column2" AllowFiltering="false" UniqueName="remain" SortExpression="remain">
<ItemTemplate>
<asp:Label ID="lRemain" Text='<%# Eval("remain") %>' runat="server"></asp:Label>
</ItemTemplate>
<ItemStyle CssClass="gridItem" Width="100" HorizontalAlign="Left" />
<HeaderStyle CssClass="gridHeader" Width="110" HorizontalAlign="Left"/>
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
<SortingSettings EnableSkinSortStyles="false" />
<ClientSettings AllowColumnsReorder="true" ColumnsReorderMethod="Reorder" >
<Scrolling AllowScroll="true" SaveScrollPosition="True" UseStaticHeaders="false"></Scrolling>
<Resizing AllowColumnResize="true" ResizeGridOnColumnResize="false" EnableRealTimeResize="false" />
<Selecting AllowRowSelect="true" />
<ClientEvents/>
</ClientSettings>
<SelectedItemStyle
CssClass="gridSelectedItemStyle"/>
</telerik:RadGrid>
protected void rgBase_OnNeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
string _id = Request["id"].ToString();
Guid entityID = new Guid(_id);
ReloadData(3, entityID);
}