将组件渲染到ExtJS网格中 [英] Rendering a component into an ExtJS grid

查看:205
本文介绍了将组件渲染到ExtJS网格中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将分割按钮呈现在网格中的列中,以对每行执行操作。我似乎无法弄清楚如何构建一个可以实现这一目标的自定义单元格渲染器。



每个单元格都将具有完全相同的分割按钮,

解决方案

您需要为列设置自定义渲染器,请查看这个例子:


I want to render a split button into a column in a grid to perform actions on each row. I can't seem to figure out how to build a custom cell renderer that will accomplish this.

Each cell will have the exact same split button, but will act on the id of the row the split button is in.

解决方案

You need to setup a custom renderer for the column, have a look at this example: http://techmix.net/blog/2010/11/25/add-button-to-extjs-gridpanel-cell-using-renderer/

这篇关于将组件渲染到ExtJS网格中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆