我想做的是在剑道网格的单列中连接或合并两列。
我试图做到这一点,但到目前为止没有成功也搜索过它,但仍然没有得到如何做到这一点?
我想将两列或三列连接在一起,例如
First Name
Middle Name
Last Name
全部应以单个显示
Full Name
这是我的一些 kendogrid 代码。
$("#EmployeeGrid").kendoGrid({
dataSource:{
transport: {
read: "<?php echo base_url() ?>index.php/hr_management/manage_hr/list_view"
},
schema:{
data: "data"
}
},
columns: [
{
field: "EmployeeID",
hidden:true
},
{
field:"LastName"
},
{ field: "LastName"+"FirstName",
title:"Full Name"
},
{
field:"City",
title:"City"
},
{
field:"AddressLine1",
title:"Address 1"
},
{
field:"WorkPhone",
title:"WorkPhone"
},
{
field:"MobileNo",
title:"Mobile No"
},
{command: { text: "View", click: showDetails }, title: " ", width: "140px"},
{command: { text: "Edit", click: EditUserDetails }, title: " ", width: "140px"}
]
});
});