0

我已经将 Jqxgrid 用于一个项目,该项目成功地从作为数据源传递给它的 json 字符串加载数据。我想在每个特定条目/行中再次在列单元格中显示图像/图标。以下代码初始化网格:

 $("#jqxgrid").jqxGrid(
        {
            width: 850,
            source: dataAdapter,                
            pageable: true,
            autoheight: true,
            sortable: true,
            altrows: true,
            enabletooltips: true,
            editable: true,
            theme: 'energyblue',
            selectionmode: 'multiplecellsadvanced',
            columns: [
           align: 'right', cellsalign: 'right', cellsformat: 'c2', width: 200 },

              { text: 'SendMail', columngroup: 'Mail Details', datafield: 'ID', width: 50 },
              { text: 'Content Type', columngroup: 'Mail Details', datafield: 'LinkFilename', cellsalign: 'right', align: 'right', width: 200 },
              { text: 'Sender', columngroup: 'Mail Details', datafield: 'Sender', align: 'right', cellsalign: 'right', cellsformat: 'c2', width: 200 },
              { text: 'Date', datafield: 'Created', cellsalign: 'right', cellsrenderer: cellsrenderer, width: 250 },

            ],
            columngroups: [
                { text: 'Mail Details', align: 'center', name: 'Mail Details' }
            ]
        }); 

请指导我完成这个。

4

1 回答 1

0

您可以在 JqxGrid 中使用图像列。教程

于 2014-07-22T12:49:33.047 回答