Hello Telerik Team,
We have a problem using TreeListView. Because there are a lot of records as result, we need to use paging in db. First page is displayed ok, but when another page is selected, this error is thrown: “the table must contain row sections in order of header, body, then footer”. VirtualCount is not supported for this control.
See below the definition of the treelist:
<telerik:RadTreeList ID="rtlDescendants" runat="server" ShowTreeLines="true" ShowOuterBorders="true"
ParentDataKeyNames="ParentInstanceID" DataKeyNames="InstanceID" AutoGenerateColumns="false"
Skin="Office2007" OnNeedDataSource="rtlDescendants_NeedDataSource" OnItemDataBound="rtl_ItemDataBound"
AllowPaging="true" AllowSorting="false" PageSize="10" onpageindexchanged="rtlDescendants_PageIndexChanged">
<PagerStyle Position="Bottom" Mode="NextPrevAndNumeric" />
<Columns>
<telerik:TreeListTemplateColumn HeaderText="ID">
<ItemTemplate>
<asp:Image ID="imgDomain" Width="16px" Height="16px" ImageUrl='<%# String.Format("~/images/Metallic16x16/{0}16x16.png", Eval("DomainName").ToString().ToUpper()) %>'
runat="server" />
<asp:LinkButton ID="lnkName" runat="server" CausesValidation="false" Text='<%# Eval("Name")%>'
PostBackUrl='<%# String.Format("~/CI/Attributes.aspx?InstanceID={0}", Eval("InstanceID")) %>'></asp:LinkButton>
</ItemTemplate>
</telerik:TreeListTemplateColumn>
<telerik:TreeListTemplateColumn HeaderStyle-Width="3%" ItemStyle-Width="3%" ItemStyle-HorizontalAlign="Center">
<ItemTemplate>
<asp:ImageButton ID="imgbPreview" runat="server" CausesValidation="false" OnClientClick='<%# String.Format("OpenPreviewPanel({0})", Eval("InstanceID")) %>'
ImageUrl="~/imagesCMSite/folder-explorer-icon.png" CssClass="image" />
</ItemTemplate>
</telerik:TreeListTemplateColumn>
<telerik:TreeListBoundColumn HeaderText="Type" HeaderStyle-Width="27%" ItemStyle-Width="27%"
DataField="DomainName" UniqueName="DomainName">
</telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn HeaderText="Modified By" HeaderStyle-Width="20%" ItemStyle-Width="20%"
DataField="ModifiedBy" UniqueName="ModifiedBy">
</telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn HeaderText="Last Modified" HeaderStyle-Width="20%" ItemStyle-Width="20%"
DataField="LastModified" UniqueName="LastModified">
</telerik:TreeListBoundColumn>
</Columns>
</telerik:RadTreeList>
In addition, next pages can include children nodes but their parent could be "located" in previous page
Thank you in advance for your help