RadTreeList - only single parent node is displayed

3 posts, 0 answers
  1. Oleksii
    Oleksii avatar
    3 posts
    Member since:
    Nov 2017

    Posted 01 Nov 2017 Link to this post

    Hi,

    I am using RadTreeList and have data source with hierarchical data.

    Data binding is done in NeedDataSource event handler.

    Code example:

    <telerik:RadTreeList RenderMode="Lightweight" ID="TreeListTrendsList" runat="server" 
                                    ParentDataKeyNames="DIM_LIST_ID_PARENT" DataKeyNames="DIM_LIST_ID" AllowPaging="true"
                                    AutoGenerateColumns="false" AllowSorting="true" ExpandCollapseMode="Client" PageSize="150" 
                                    OnItemDataBound="TreeListTrendsList_ItemDataBound" OnNeedDataSource="TreeListTrendsList_NeedDataSource">

     

    So, the DataKeyNames=DIM_LIST_ID and ParentDataKeyNames=DIM_LIST_ID_PARENT. Data source has ~100 records with DIM_LIST_ID_PARENT=0 and I expected to see them as top level nodes, but for some reason I see only single parent node (with DIM_LIST_ID_PARENT=0, DIM_LIST_ID=1).

    Could somebody please suggest how to achieve the required behavior?

     

     

     

     

  2. Oleksii
    Oleksii avatar
    3 posts
    Member since:
    Nov 2017

    Posted 01 Nov 2017 Link to this post

    I couple of screenshots related to my question
  3. Oleksii
    Oleksii avatar
    3 posts
    Member since:
    Nov 2017

    Posted 01 Nov 2017 in reply to Oleksii Link to this post

    Sorry, some issue when adding attachments
Back to Top