I used RADGrid Control to create grid data as FreeView. My code in ASP.NET below:
<telerik:RadGrid ID="gridDocs" runat="server" AllowPaging="false" BorderWidth="0px"
AutoGenerateColumns="False" OnItemCommand="gridDocs_ItemCommand"
OnItemDataBound="gridDocs_ItemDataBound" OnItemCreated="gridDocs_ItemCreated" OnColumnCreated="gridDocs_ColumnCreated"
EnableLinqExpressions="false">
<%-- JHE : HierarchyDefaultExpanded="false" parameter which define if all is expanded or not--%>
<MasterTableView HierarchyDefaultExpanded="false" HierarchyLoadMode="ServerBind"
DataKeyNames="ID, ParentID" Width="100%" ExpandCollapseColumn-Display="true" RowIndicatorColumn-Visible="true"
GridLines="Both">
<NestedViewTemplate>
<asp:Panel runat="server" ID="InnerContainer">
<asp:Label runat="server" ID="lblTest" Text="test"></asp:Label>
</asp:Panel>
</NestedViewTemplate>
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Resizable="true">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<SelfHierarchySettings ParentKeyName="ParentID" KeyName="ID"/>
<PagerStyle Mode="numericpages" />
<NoRecordsTemplate>
no records retrieved
</NoRecordsTemplate>
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
<Columns>
....
The BOLD lines: I want to View Detail of a row. But If I don't user lines:
<NestedViewTemplate>
<asp:Panel runat="server" ID="InnerContainer">
<asp:Label runat="server" ID="lblTest" Text="test"></asp:Label>
</asp:Panel>
</NestedViewTemplate>
It works OK
If I use the Bold lines to show detail=> it does't work.
The problem: If I use <NestedViewTemplate>=> The tree view is broken.
attached file is what I exptect: When I click on icon"+"=> detail will be shown.
Pls help me to do it
Thanks alot
<telerik:RadGrid ID="gridDocs" runat="server" AllowPaging="false" BorderWidth="0px"
AutoGenerateColumns="False" OnItemCommand="gridDocs_ItemCommand"
OnItemDataBound="gridDocs_ItemDataBound" OnItemCreated="gridDocs_ItemCreated" OnColumnCreated="gridDocs_ColumnCreated"
EnableLinqExpressions="false">
<%-- JHE : HierarchyDefaultExpanded="false" parameter which define if all is expanded or not--%>
<MasterTableView HierarchyDefaultExpanded="false" HierarchyLoadMode="ServerBind"
DataKeyNames="ID, ParentID" Width="100%" ExpandCollapseColumn-Display="true" RowIndicatorColumn-Visible="true"
GridLines="Both">
<NestedViewTemplate>
<asp:Panel runat="server" ID="InnerContainer">
<asp:Label runat="server" ID="lblTest" Text="test"></asp:Label>
</asp:Panel>
</NestedViewTemplate>
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Resizable="true">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<SelfHierarchySettings ParentKeyName="ParentID" KeyName="ID"/>
<PagerStyle Mode="numericpages" />
<NoRecordsTemplate>
no records retrieved
</NoRecordsTemplate>
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
<Columns>
....
The BOLD lines: I want to View Detail of a row. But If I don't user lines:
<NestedViewTemplate>
<asp:Panel runat="server" ID="InnerContainer">
<asp:Label runat="server" ID="lblTest" Text="test"></asp:Label>
</asp:Panel>
</NestedViewTemplate>
It works OK
If I use the Bold lines to show detail=> it does't work.
The problem: If I use <NestedViewTemplate>=> The tree view is broken.
attached file is what I exptect: When I click on icon"+"=> detail will be shown.
Pls help me to do it
Thanks alot