1. #1
    Sencha User
    Join Date
    Mar 2007
    Posts
    210
    Vote Rating
    1
    KRavEN is on a distinguished road

      0  

    Default Ext.ux.ListView.plugin.CheckColumn and Ext.ux.list.CheckColumn

    Ext.ux.ListView.plugin.CheckColumn and Ext.ux.list.CheckColumn


    First I have Ext.ux.ListView.plugin.CheckColumn. This works similar to the example ux Grid CheckColumn plugin except it's for a ListView. It changes the store value and fires beforecheck and check events. It can be configured to keep row selections and use other click events like dblclick rather than the default click event. Code was inspired by Saki's RowAction code and the Ext example ux.

    Extract into the examples/list folder for a demo. (Must be behind a webserver to load the plants.xml file)
    Ext.ux.ListView.plugin.CheckColumn.zip

    Changelog
    2 Sep 2010: v0.2 added more docs

    Use Ext.ux.ListView.plugin.CheckColumn if you need to be able to be able to check and uncheck the checkbox.

    If all you want to do is display a checkbox instead of a True/False string for a boolean column then use Ext.ux.list.CheckColumn. It behaves exactly like Ext.list.BooleanColumn
    PHP Code:
    /**
     * @class Ext.ux.list.CheckColumn
     * @extends Ext.list.Column
     */

    Ext.ns('Ext.ux.list');
    Ext.ux.list.CheckColumn Ext.extend(Ext.list.Column, {
      
    constructor : function(c) {
        
    c.tpl c.tpl || new Ext.XTemplate('{' c.dataIndex ':this.format}');

        
    c.tpl.format = function(v) {
          return 
    String.format('<div class="x-grid3-check-col{0}"> </div>''-on' '');
        };

        
    Ext.ux.list.CheckColumn.superclass.constructor.call(thisc);
      }
    });

    Ext.reg('lvcheckcolumn'Ext.ux.list.CheckColumn); 
    Last edited by KRavEN; 30 Aug 2010 at 4:28 AM. Reason: fixed constructor

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Posts
    210
    Vote Rating
    1
    KRavEN is on a distinguished road

      0  

Similar Threads

  1. Plugin - Howto use the checkcolumn
    By dduffy in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 23 Jul 2010, 2:59 AM
  2. Row Editor with CheckColumn as plugin
    By dan007 in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 29 Nov 2009, 2:25 PM
  3. Row Editor with CheckColumn as plugin
    By dan007 in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 28 Nov 2009, 11:37 AM
  4. Problem with CheckColumn grid plugin
    By malotor in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 11 Oct 2008, 8:44 AM
  5. Grid multiple CheckColumn plugin.
    By Telrik in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 16 Jun 2008, 4:38 AM

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi