Forum Stats

  • 3,727,601 Users
  • 2,245,416 Discussions
  • 7,852,885 Comments

Discussions

CollectionTreeDataSource with TreeView

DaveArch
DaveArch Member Posts: 78 Red Ribbon

JET Version: 10.0.0

Hi Community/JET Team

We are using TreeView with data sourced from a web service.

Cookbook example Data Source: Collection leveraging CollectionTreeDataSource is just what we need however I see from the JS Doc that it's deprecated.

Is there a replacement or alternative technique for using TreeView with Collections? By using a collection, it makes life a lot easier when working with external services.

Thanks!

Best Answer

  • John 'JB' Brock-Oracle
    John 'JB' Brock-Oracle Posts: 2,519 Employee
    Accepted Answer

    There isn't a replacement yet Dave. Feel free to keep using the CollectionTreeDataSource for now. The only drawback on it's use is that it can not be used with TypeScript development as we do not have type definitions for it. While it is deprecated, we do not have plans to remove it from the distribution anytime soon, or really at all right now.

Answers

  • John 'JB' Brock-Oracle
    John 'JB' Brock-Oracle Posts: 2,519 Employee
    Accepted Answer

    There isn't a replacement yet Dave. Feel free to keep using the CollectionTreeDataSource for now. The only drawback on it's use is that it can not be used with TypeScript development as we do not have type definitions for it. While it is deprecated, we do not have plans to remove it from the distribution anytime soon, or really at all right now.

  • DaveArch
    DaveArch Member Posts: 78 Red Ribbon

    Thanks John - appreciated.

Sign In or Register to comment.