TreeListDataSource and Model

1 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 unable to get the model to work within the datasource.  Anything special I need to do?  When I remove the model it works.  Thanks

        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" }

    });
Back to Top