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

TreeList breaks when using TreeListModel inherited from a Model

1 Answer 19 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michelle
Top achievements
Rank 1
Michelle asked on 20 Aug 2015, 06:33 PM

I am trying to supply a TreeList widget with a list of TreeListModel objects that are based on  Model objects.  The way I am creating the TreeListModels is that I first create an empty kendo Model definition with no fields defined and then I create a TreeListModel definition with the empty base Model passed into the TreeList Model's define method as the first parameter, such that the TreeListModel inherits from the base Model.  I realize that this is not documented as being part of the public API, but for my application, we require such a setup because we proxy generate our TreeListModels, which extends (typescript) from a commonly shared Model definition.  I have created a simple example to demonstrate how the TreeList shows "loading" forever as soon as I try to do this model wrapping.  Please comment out the indicated parameter to see the breakage.

http://dojo.telerik.com/IdAhI 

 Any suggestions on workarounds/bug fixes, would be greatly appreciated. 

Thanks!

Michelle

1 Answer, 1 is accepted

Sort by
0
Michelle
Top achievements
Rank 1
answered on 20 Aug 2015, 06:36 PM
Sorry, I just realized I posted in the wrong forum.  I have reposted this in the TreeList section.  Please ignore this one.
Tags
Grid
Asked by
Michelle
Top achievements
Rank 1
Answers by
Michelle
Top achievements
Rank 1
Share this question
or