Kendo TreeView

2 posts, 1 answers
  1. Adolfo Marinucci
    Adolfo Marinucci avatar
    11 posts
    Member since:
    Sep 2009

    Posted 29 Jul 2016 Link to this post

    Hi all,

    It seems that TreeView can't show nodes children if model has a property called exactly 'children'.

    For example it doesn't show child nodes if bound to model like this:

    var inline = new{
        data: [
              categoryName: "Storage",
                subCategories: [
                { subCategoryName: "Wall Shelving" },
                { subCategoryName: "Floor Shelving" },
                { subCategoryName: "Kids Storage" } ],
              categoryName: "Lights",
                subCategories: [
                { subCategoryName: "Ceiling" },
                { subCategoryName: "Table" },
                { subCategoryName: "Floor" }],
        schema: {
            model: {
                children: "subCategories"


    This is an example:


    It's a bug or is intended?


    Adolfo Marinucci




  2. Answer
    Alex Gyoshev
    Alex Gyoshev avatar
    2527 posts

    Posted 02 Aug 2016 Link to this post

    Hello Adolfo,

    This name is reserved for the children field of the Node instances, which needs to hold child DataSource instances, rather than the data itself. This is documented in the datasource schema.model configuration.

    Alex Gyoshev
    Telerik by Progress
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
Back to Top