-
16 Nov 2009 5:05 AM #1Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
SingleSelectCheckColumn
SingleSelectCheckColumn
SingleSelectCheckColumn is a CheckColumn extension that only allows one row to be checked at a time (so it behaves like a radiogroup).
Code:Ext.ux.grid.SingleSelectCheckColumn = Ext.extend(Ext.ux.grid.CheckColumn, { onMouseDown : function(e, t){ if(Ext.fly(t).hasClass('x-grid3-cc-'+this.id)){ e.stopEvent(); var index = this.grid.getView().findRowIndex(t), dataIndex = this.dataIndex; this.grid.store.each(function(record, i){ var value = (i == index); if(value != record.get(dataIndex)){ record.set(dataIndex, value); } }); } } });
-
23 May 2010 11:49 AM #2
-
6 May 2011 4:52 AM #3
Hi guys, i was trying to use this plugin but when i go on my component in my application i've back this :
Cls is not a constructor
c = new Cls(c);
To use this item i did a script with ns and reg and i called the sscc with the reg name into my xtype.
I found on web that this error can be caused from an unfair framework's version (atm i'm using 3.3.0).


Reply With Quote