gpt4 book ai didi

php - 连接剑道网格列

转载 作者:行者123 更新时间:2023-12-02 05:08:05 24 4
gpt4 key购买 nike

我想做的是在剑道网格中将两列连接或合并为单列。

我试过了,但到目前为止还没有成功,我也搜索过它,但仍然不知道如何去做??

我想在单个 e-g 中连接两列或三列

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"}
]
});
});

最佳答案

答案是使用template专栏:

template:"#= FirstName # #= MidName # #= LastName #"

关于php - 连接剑道网格列,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15964021/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com