TreeListDataSource and Model

2 posts, 0 answers
  1. Tristian Fernandez
    Tristian Fernandez avatar
    18 posts
    Member since:
    Nov 2009

    Posted 06 Nov 2014 Link to this post

    I'm having trouble setting up a TreeListDataSource with a model included.  When I remove the model, it works.  Is there something special that I should be doing?  I copied and pasted the sample from the API and had the same issue.

    var dataSource = new kendo.data.TreeListDataSource({
    data: data,
    schema: {
    model: {
    id: "BUID",
    fields: {
    Name:{field:"BU"},
    DeltaAdjLMV: { field: "DeltaAdjLMV", type: "numeric" },
    DeltaAdjSMV: { field: "DeltaAdjSMV", type: "numeric" },
    DeltaAdjMV: { field: "DeltaAdjMV", type: "numeric" },
    DeltaAdjGMV: { field: "DeltaAdjGMV", type: "numeric" },
    SpreadDollar:{field:"SpreadDollar", type: "numeric" },
    DayPNL:{ field:"DayPNL",type: "numeric" },
    WtdPnl:{ field:"WtdPnl",type: "numeric" },
    MtdPnl:{ field:"MtdPnl",type: "numeric" },
    QtdPnl:{ field:"QtdPnl",type: "numeric" },
    YtdPnl:{ field:"YtdPnl",type: "numeric" }
    }
    }
    },
    sort: { field: "DeltaAdjGMV", dir: "desc" }

    });
  2. Tristian Fernandez
    Tristian Fernandez avatar
    18 posts
    Member since:
    Nov 2009

    Posted 06 Nov 2014 in reply to Tristian Fernandez Link to this post

    http://docs.telerik.com/kendo-ui/api/framework/kendo.data.TreeListModel#configuration
    I think this is missing.
Back to Top