Kendo ui 剑道格网条件

Kendo ui 剑道格网条件,kendo-ui,grid,Kendo Ui,Grid,这里由“PrimaryPlaceOfPractice”db返回1或0。但我想做的是,如果它返回1,我想在网格中显示“是”,如果返回0,则显示“否”。我怎样才能做到这一点。有没有办法处理这些情况。是否有一种方法可以显示不同的值,而不是从数据库中检索到的值 dataSource: { pageSize: 5, serverPaging: false, serverSorting:

这里由“PrimaryPlaceOfPractice”db返回1或0。但我想做的是,如果它返回1,我想在网格中显示“是”,如果返回0,则显示“否”。我怎样才能做到这一点。有没有办法处理这些情况。是否有一种方法可以显示不同的值,而不是从数据库中检索到的值

dataSource: {
                    pageSize: 5,
                    serverPaging: false,
                    serverSorting: false,
                    schema: {
                        model: {
                            id: "EmploymentHistoryId",
                            fields: {
                                EmployerName: { validation: { required: true } },
                                JobTitle: { validation: { required: true } },
                                PrimaryPlaceOfPractice: { validation: { required: true } },
                                StartDate: { validation: { required: true } },
                                EndDate: { validation: { required: true } },
                            }                                                                                                                                                                  
                        }
                    }
                },
                sortable: true,
                pageable: true,
                toolbar: ["create"],
                editable: "popup",
                autoSync: true,
                columns: [
                    {
                        field: "EmployerName",
                        title: "Name of Employer"
                    },{
                        field: "JobTitle",
                        title: "Job Title"
                    },{
                        field: "PrimaryPlaceOfPractice",
                        title: "Primary Place Of Practice"
                    },
                     {
                        field: "StartDate",
                        title: "Start Date",
                        template: "#= kendo.toString(kendo.parseDate(StartDate, 'yyyy-MM-dd'), 'MM/dd/yyyy') #"

                    }, {
                        field: "EndDate",
                        title: "End Date",
                        template: "#= kendo.toString(kendo.parseDate(EndDate, 'yyyy-MM-dd'), 'MM/dd/yyyy') #"

                    },{
                        command: ["destroy", "edit"],
                        title: "Action"
                    }
                ]
/* ... */
columns: [
/* ... */
},{
    field: "PrimaryPlaceOfPractice",
    title: "Primary Place Of Practice",
    template: "#=PrimaryPlaceOfPractice == 1 ? 'Yes' : 'No'#"
},{
/* ... */
]
/* ... */