Get help with testing, discuss unit testing strategies etc.


Post by team.avesta »

I am using ExtJs 4.1.2 and siesta 1.1.2 lite testing tool.
.
when i run the reduced test case without check column it works perfectly fyn but as I include a checkcolumn in my grid panel it creates an error of type : name is undefined.
.
.
here is my view panel code :
Ext.define('JS.view.User.AcgCenterModules',{
    extend: 'Ext.grid.Panel',
  	alias : 'widget.acgcentermodules',
	store : 'AcgCenterModulesStore',
	autoScroll : true,
	columnLines : true,
	layout: 'fit',
	      plugins: [
       {
		  	ptype: 'cellediting',
			clickToEdit: 2
		  }
    ],
	columns: [{
				text: 'Modules',
				dataIndex: 'modules',
				width: 150,	
				height: 40,	
				name: 'modules'
			},{
				text : 'Access Rights',
				columns : [{
						    xtype: 'checkcolumn',////HERE PROGRAM EXECUTION STOPS.
						   	text: 'Select All',
							id: 'selectall',
							dataIndex: 'selectall',
							width: 110,	
							height: 40,	
							name: 'selectall',
							editor:'checkbox'
						   },{
						    xtype: 'checkcolumn',
						   	text: 'Create',
							dataIndex: 'create',
							width: 110,	
							height: 40,	
							name: 'create',
							editor:'checkbox'
						   },{
   						    xtype: 'checkcolumn',
						   	text: 'Read',
							dataIndex: 'read',
							width: 110,	
							height: 40,	
							name: 'read',
							editor:'checkbox'
						   },{
							xtype: 'checkcolumn',
						   	text: 'Update',
							dataIndex: 'update',
							width: 110,	
							height: 40,	
							name: 'update',
							editor:'checkbox'
						   },{
							xtype: 'checkcolumn',
						   	text: 'Delete',
							dataIndex: 'delete',
							width: 110,	
							height: 40,	
							name: 'delete',
							editor:'checkbox'
						   }]
				}],
	
	bbar: [,'->',{
					iconCls: 'save',
					tooltip: 'Save',
				   	text: 'Save',
					action: 'Save'
		   }],
	 	initComponent: function()
       	{
             this.cellediting = Ext.create('Ext.grid.plugin.RowEditing');
       		 Ext.apply(this, {
                          plugins: [this.cellediting]
                       });
                       this.callParent(arguments);
			
       }
	
});
.
Is this a bug..? or i am making mistake somewhere....Please let me know and help me out.
.
Thanks In Advance.

Post by mats »

Does this code run ok outside of Siesta?

Post by nickolay »

"checkcolumn" is an xtype of ExtJS extension, do you include it in your "preloads"?

Post by team.avesta »

Yes Mats its works perfectly fyn outside Siesta..

Post by team.avesta »

Yes nickolay, i had included it in preload.
.
still NO LUCK :( :(
.
my preload code :
preload : [
        "extjs/resources/css/ext-all.css",
        "extjs/ext-all-debug.js",
	"extjs/examples/ux/css/CheckHeader.css"
		
    ] 

Post by nickolay »

You include only css file, need to include also js..

Post by team.avesta »

wooww....THANKS NICKOLAY...it works JORDAARRR..!!! :) :) :) :) :)

Post Reply