This is a migrated thread and some comments may be shown as answers.

RadTreeList - Pagging Issue

1 Answer 85 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 12 Apr 2011, 02:53 AM

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" />&nbsp;

                        <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

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 13 Apr 2011, 08:40 AM
Hi Paul,

RadTreeList does not currently support custom paging. You need to provide the entire treelist data source, so that it can properly build its hierarchical items tree. Otherwise, the control cannot track its expanded items state.

Veli
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
General Discussions
Asked by
Paul
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or