Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Ext.grid.EditorGridPanel checkbox editor problem in Chrome 9.0.597.86 beta

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #11

    Default processEvent issue

    Quote Originally Posted by Condor View Post
    Using a Checkbox as an editor has never works correctly in any Ext version.

    Not only does it need some css fixes, but it just doesn't work intuitively (you need one click to activate the checkbox and one to toggle it).

    Any reason you're not using Ext.ux.grid.CheckColumn (from ext/examples/ux/CheckColumn.js)?
    I cannot check or uncheck any checkcolumn in a EditorGridPanel when using Ext.ux.grid.CheckColumn as it was in "Editor Grid Example". The processEvent function is not ever fired.
    Thanks in advanced

  2. #12
    Sencha User
    Join Date
    Dec 2009
    Posts
    95

    Default

    After some test Ext.form.Checkbox is not working neighter Ext.ux.grid.CheckColumn

    Even better, u can change Ext.form.Checkbox taping the space bar after u click on this field in editor grid.

    Ext.ux.grid.CheckColumn is not working at all in chrome

    Edit-----------------------------------------------------------------------------------------------------

    Sorry, my bad, after further investigation the Ext.ux.grid.CheckColumn is working just perfect

    U have to remember to add it as plugin to editorGridPanel

  3. #13
    Ext JS Premium Member SMMJ_Dev's Avatar
    Join Date
    Aug 2009
    Location
    St. Louis, MO
    Posts
    90

    Default

    I actually agree on this. It worked back in ExtJS 3.0 for the older version of Chrome and all the versions of IE and Firefox. Though we are now moving away from the checkbox as an editor for the checkbox column.

    The only reason why we were not using the column was so that we could display specialized text according to the click state of the checkbox when we were not in edit mode.

  4. #14

    Default

    using the checkcolumn not work the tab navigation order between cells

  5. #15
    Touch Premium Member
    Join Date
    Jun 2008
    Posts
    41

    Default ever addressed

    Was this issue ever addressed, or did anyone ever come up with a work around?

  6. #16
    Touch Premium Member
    Join Date
    Jun 2008
    Posts
    41

    Default Resolved

    Hello all. I was able to resolve this by adding in the following code when the field is created. I set my editor to be a function that returns the field. But before returning the field, it does the following (I input to the function what kind of field it should be. That's what the format.type is:

    Code:
             
    function returnField(format){
    this.factory = function(format){
    // Put in some logic here to create your editor based on what kind of field it should be.
    // So at this point you should have an Ext.form.Field (or extension to play with)
    if(Ext.isChrome && format.type=='bool'){            field.on('afterrender',this.changeBool,this);
            }
            return field;
        };
    
    
    this.changeBool = function(field){
            var oldThis = this;
            field.mon(field.el,'mousedown',function(event,elem,obj){
                    // Note that "this" is the FIELD
                    this.setValue(!this.getValue());
                    // Remove this listener.
                    this.removeListener('afterrender',oldThis.changeBool,oldThis);
                },field);
        };
    return this.factory(format);
    }

Page 2 of 2 FirstFirst 12

Similar Threads

  1. [SOLVED]Problem updating checkbox column in EditorGridPanel
    By mck4design in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 22 Sep 2010, 12:37 PM
  2. [OPEN-580] Editor Grid cell editting quirks in IE & Chrome
    By mattgoldspink in forum Ext 3.x: Bugs
    Replies: 2
    Last Post: 16 Feb 2010, 7:39 AM
  3. Checkbox in EditorGridPanel tabbing problem
    By scottw in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 29 Jan 2010, 8:27 AM
  4. [OPEN] [FIXED] editor tree grid broken in chrome
    By fother in forum Ext GWT: Bugs (2.x)
    Replies: 1
    Last Post: 10 Jun 2009, 3:19 PM
  5. Grid checkbox problem with Google chrome
    By organic in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 21 Sep 2008, 10:47 PM

Posting Permissions

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