[App.vue]
export default {
data() {
return {
childGrid: {
dataSource:
gridData,
queryString:
"EmployeeID",
columns: [
{
field: "OrderID",
headerText: "Order ID",
textAlign: "Right",
width: 120,
},
{
field: "CustomerID", headerText: "Customer ID", width:
150 },
{
field: "ShipCity", headerText: "Ship City", width: 150 },
{
field: "ShipName", headerText: "Ship Name", width: 150 },
],
queryCellInfo:
this.queryCellInfo_child.bind(this), //
bind the queryCellInfo event to childGrid
},
};
},
methods: {
queryCellInfo_child: function (args) {
//
do your operation here
if (args.column.field ===
"CustomerID" || args.column.field === "ShipCity") {
args.cell.setAttribute("title", args.cell.innerText);
}
},
},
};
|