dataSource.data();
读取表格中的数据
dataSource.read();
通过远程控制将新增数据存储到表格并展示
dataSource.add();
放置json,向数组添加内容至尾部
编辑行:editRow
编辑并保存行 grid.addRow();grid.saveChanges();
日期格式显示 年/月
<div class="col-md-4">
<div class="form-group has-feedback">
<label class="input-title" for="discountStart">
按计薪月份
</label>
<input name="discountName" id="discountStart" class="form-control" maxlength="20">
</div>
</div>
//日期显示格式
$("#discountStart").kendoDatePicker({
value: new Date(),
depth: "year",
start: "year",
format: "yyyy/MM"
});
//表头
toolbar: [
{ template: kendo.template($("#template").html()) }
]