function BindDataToGrid() {
            var grid = new dhx.Grid("grid_container", {
                columns: [
                    { width: 150, id: "ProductCode", header: [{ text: "<span class='title'>Product Code</span>" }] },
                    { width: 200, id: "ProductName", header: [{ text: "Product Name" }] },
                    { width: 200, id: "ProductManufacturedDate", header: [{ text: "Manufacturing Date" }] },
                    { width: 150, id: "ProductPrice", header: [{ text: "Price" }] },
                    //Add custom column here for edit and delete purpose
                ],
                headerRowHeight: 50,
                width: 800,
                height: 400,
                data: dataset,
                resizable: true
            });
        }

我想要自定义列在产品价格列之后。
请帮我 。

最佳答案

对于在网格列中自定义显示内容,您可以尝试将模板用于网格列。如以下示例所示:
https://docs.dhtmlx.com/suite/samples/grid/02_configuration/02_cell_templates.html

09-10 11:24
查看更多