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

Bind TreeList to local data

3 Answers 381 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 26 Nov 2014, 01:22 PM
Is there a way to bind a TreeList to a local datasource like you can with the grid?

With the grid, you can do this: @(Html.Kendo().Grid(Model)

The TreeList doesn't seem to like that.

Martin
Top achievements
Rank 1
commented on 08 Jun 2021, 04:25 PM

This is surely a bug?

I have just wasted a few hours trying to get a TreeList to display some data.

@(Html.Kendo().TreeList<ExtraDetailsConfigVM.TreeListRowVM>()
.BindTo(Model.TreeListData)
.Name("JRCExtraDetailsTL")......

When my view runs, there is valid data in Model.TReeListData, but no data is output to the html. The resulting json object just contains the column and model definitions, but no data.

So what exactly does BindTo() actually do? NOTHING!

If its not supported, then this should not compile.
If it does compile, then it should work.
Eyup
Telerik team
commented on 10 Jun 2021, 04:19 PM | edited

Thank you for bringing this issue to our attention. I tested the described scenario and was able to reproduce the problem. I've updated your Telerik points as a token of gratitude.

I will log it in our backlog for further action to determine whether it is a bug or limitation.

3 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 27 Nov 2014, 03:41 PM
Hello Jason,


Indeed the MVC TreeList currently does not have a helper for binding it to local data. You could use the JavaScript implementation instead.

Regards,
Dimiter Madjarov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Ziraat Teknoloji A.S.
Top achievements
Rank 1
answered on 26 Jul 2018, 10:46 AM

Hello,

Is this still the same? Should we use the JavaScript implementation?

0
Konstantin Dikov
Telerik team
answered on 30 Jul 2018, 08:53 AM
Hi Ziraat,

The TreeList still does not support server binding and the only option for local binding is to use the Kendo UI TreeList.


Regards,
Konstantin Dikov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
TreeList
Asked by
Jason
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Ziraat Teknoloji A.S.
Top achievements
Rank 1
Konstantin Dikov
Telerik team
Share this question
or