---
title: "new Ext.grid.GridPanel render"
author: "wangleide414"
date: "2012-12-12T18:25:30Z"
tags: []
categories: ["开源软件"]
slug: "new-ext-grid-gridpanel-render"
draft: false
lastmod: "2012-12-12T18:26:00Z"
id: 1746677
url: "https://wangleide414.iteye.com/blog/1746677"
---

```
    function renderDescn(value, cellmeta, record, rowIndex, columnIndex, store) {
        var str = "<input type='button' value='详细信息' onclick='alert(\"" +
            "这个单元格的值是：" + value + "\\n" +
            "这个单元格的配置是：{cellId:" + cellmeta.cellId + ",id:" + cellmeta.id + ",css:" + cellmeta.css + "}\\n" +
            "这个单元格对应行的record是：" + record.data["id"] + "，一行的数据都在里边\\n" +
            "这是第" + rowIndex + "行\\n" +
            "这是第" + columnIndex + "列\\n" +
            "这个表格对应的Ext.data.Store在这里：" + store + "，随便用吧。" +
            "\")'>";
        return str;
    }
```

```
显示grid中每行的具体的值
```