Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Feb 2010
    Posts
    39
    Vote Rating
    0
    ales is on a distinguished road

      0  

    Default Change the state of a checkboxColumn

    Change the state of a checkboxColumn


    Hi,

    I have a grid in which my first column is a CheckColumn.

    In one case, I want that all my checkboxes are slectable, and in an other case, (when I click on a button) I want that all my checkboxes are disabled.

    How can I do this ?
    I have not found a solution to do that.

    Thanks.

  2. #2
    Ext JS Premium Member pavanextjs's Avatar
    Join Date
    Jul 2008
    Posts
    118
    Vote Rating
    2
    pavanextjs is on a distinguished road

      0  

    Default


    If you are using Ext.grid.CheckColumn component

    PHP Code:
    var checkColumn = new Ext.grid.CheckColumn({
        ...
        
    //listen your mouse down event
        
    onMouseDown : function(et){
                if(
    condition1) {
                    
    //return false to stop the checking
                    
    return false;
                }
        }
    }); 

  3. #3
    Ext JS Premium Member pavanextjs's Avatar
    Join Date
    Jul 2008
    Posts
    118
    Vote Rating
    2
    pavanextjs is on a distinguished road

      0  

    Default


    Try this, this will fix all the scenarios. Play with it according to your needs.

    PHP Code:
    onMouseDown : function(et){
        if(
    condition1) {
            return 
    false;
        }
        
    //else follow the normal routine
        
    if(t.className && t.className.indexOf('x-grid3-cc-'+this.id) != -1){
            
    e.stopEvent();
            var 
    index this.grid.getView().findRowIndex(t);
            var 
    record this.grid.store.getAt(index);
            
    record.set(this.dataIndex, !record.data[this.dataIndex]);
        }


  4. #4
    Sencha User
    Join Date
    Feb 2010
    Posts
    39
    Vote Rating
    0
    ales is on a distinguished road

      0  

    Default


    Thank you.

    But this is PHP code. Is it the same way in Java ?

  5. #5
    Ext JS Premium Member pavanextjs's Avatar
    Join Date
    Jul 2008
    Posts
    118
    Vote Rating
    2
    pavanextjs is on a distinguished road

      0  

    Default


    Oh you are asking for GWT, try a similar thing in GWT. The code sample is for ExtJS/Sancha

  6. #6
    Sencha User
    Join Date
    Feb 2010
    Posts
    39
    Vote Rating
    0
    ales is on a distinguished road

      0  

    Default


    Yes, I'm asking for GXT

    I will try to adapt it.

Similar Threads

  1. [2.0??] Problem with CheckboxColumn
    By aymen00007 in forum Ext 2.x: Bugs
    Replies: 2
    Last Post: 11 Aug 2010, 4:01 AM
  2. Ext.ux.grid.CheckboxColumn
    By tcl_java in forum Ext 3.x: User Extensions and Plugins
    Replies: 7
    Last Post: 16 May 2010, 12:54 PM
  3. grid checkboxColumn
    By yanqing.zhou in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 14 May 2009, 10:07 PM
  4. RowExpander + CheckboxColumn in IE6 not functioning
    By mcanthon in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 6 Jun 2008, 2:32 PM
  5. Change readOnly state
    By acontreras in forum Community Discussion
    Replies: 0
    Last Post: 21 Jan 2008, 4:58 AM

Thread Participants: 1

Tags for this Thread