Results 1 to 3 of 3

Thread: SingleSelectCheckColumn

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    118
      0  

    Default 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);
                	}
                });
            }
        }
    });

  2. #2
    Ext User
    Join Date
    Nov 2007
    Posts
    7
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by Condor View Post
    Code:
    Ext.ux.SingleSelectCheckColumn = Ext.extend(Ext.ux.CheckColumn, {
    @fix
    Code:
    Ext.ux.SingleSelectCheckColumn = Ext.extend(Ext.ux.grid.CheckColumn, {

  3. #3
    Sencha User
    Join Date
    Apr 2011
    Posts
    2
    Vote Rating
    0
      0  

    Default

    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).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •