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

Not displaying records

1 Answer 74 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Rayne
Top achievements
Rank 1
Rayne asked on 28 Nov 2017, 04:52 PM

My Treelist is not displaying any records. I've verified that the data source works, because it's displaying in a standard grid.

The documentation states the following:

If the key fields are of value type or string, the root items are either:

  • items with ParentKeyValue set to the default value of the type
  • items for which the parent key value is equal to the key value

In my datasource record ID 14 has a parentID 14 indicating it's a root item. Why is this not working in my treeList? Am I misunderstanding the documentation?

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 01 Dec 2017, 01:14 PM
Hi Rayne,

The outermost parent items should have null data key values:
https://www.telerik.com/forums/treelist---define-id-of-root-level-items#40kHXyxT90qW4Ai1FQRSBA

I am also sending a basic RadTreeList web site sample implemented with dummy data source.

Regards,
Eyup
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
TreeList
Asked by
Rayne
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or