Как показать массив объектов в сетке кендо - PullRequest
0 голосов
/ 02 мая 2020
<script>
    $("#grid").kendoGrid({
       columns:
                    [
                        { title: "Directive Type", field: "DirectiveTypeId", width: "120px" },
                        {
                            title: "Effective Date", field: "EffectiveDate",
                            template: '#= kendo.toString(kendo.parseDate(EffectiveDate), "MM/dd/yyyy")  #',
                            width: "130px"
                        }
                    ],
      dataSource: [{
                    "Directives": [
                        {


                            "EffectiveDate": "2011-06-09T00:00:00",
                            "DirectiveTypeId": "General",

                            "GlossaryTerms": [],
                            "Indexes": []
                        }
                    ]
                } 
              ]
    });
    </script>
...