PDA

View Full Version : Adding checkbox in view part of MVC



sencha.user
7 Nov 2012, 6:06 AM
Hi,

I have a grid with one column and I need to add checkbox to it and do some operations with those column values.


Ext.define('AM.view.user.List' ,{
extend: 'Ext.grid.Panel',
alias: 'widget.userlist',

title: 'Topic:',

store: 'Users',

initComponent: function() {
this.columns = [
{header: 'Fields', dataIndex: 'Field'}],

this.callParent(arguments);
}
});

How do I add checkbox to the same column? Please help.

Thanks!

mitchellsimoens
9 Nov 2012, 9:23 AM
Have you looked into the Ext.ux.CheckColumn? It comes with the framework in the examples directory

sencha.user
16 Nov 2012, 6:35 AM
I got this one done,

http://www.sencha.com/forum/showthread.php?248294-Checkbox-for-view-part-of-MVC

Thanks!