View Full Version : Custom Grid Columns w/out using @renderer or an XTemplate?

29 Jun 2012, 1:05 AM
Say I create a view such as;

Ext.define('MyApp.view.MyView', { extend: 'Ext.container.Container',
alias: 'widget.myView',
items: [/*
... etc

How can I re-use this code within a Grid Column? I've seen @items in the column docs (http://docs.sencha.com/ext-js/4-1/#!/api/Ext.grid.column.Column-cfg-items) and also @defaultType (http://docs.sencha.com/ext-js/4-1/#!/api/Ext.grid.column.Column-cfg-defaultType) but without any luck.

Does anyone know how to do this? Thanks.

29 Jun 2012, 8:57 AM
Check out this user extension to include a component into a column. http://www.sencha.com/forum/showthread.php?174504-Its.grid.column.Component