Results 1 to 3 of 3

Thread: Sencha ExtJS RowEditing beforeEdit Unhide column does not begin edit

    You found a bug! We've classified it as EXTJS-15540 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User
    Join Date
    Oct 2014
    Posts
    12
    Vote Rating
    0
      0  

    Default Sencha ExtJS RowEditing beforeEdit Unhide column does not begin edit

    I have a Grid with some columns in it, one of the columns contains a button I only want to be visible during editing of the row. I have set the column by default to hidden: true. This work fine the grid renders and the column is not there. Inside the RowEditing plug-In i have wired up the beforeedit event and have added code to display the column (setHidden(false)). The issue is when I put this code in here to display the column the first time the user double clicks on the row to edit it simply shows the column and never goes into edit mode. You have double click the same row again to finally begin the edit process. Here is the code below any idea's?

    Code:
    Ext.create('Ext.grid.plugin.RowEditing', {    clicksToMoveEditor: 1,
        autoCancel: true,
        listeners:
        {
            beforeedit: function( editor, context, eOpts )
            {       
                //if (Ext.ComponentQuery.query("#colStopOptions") != null && Ext.ComponentQuery.query("#colStopOptions") != undefined && Ext.ComponentQuery.query("#colStopOptions").length > 0)
                //{
                    Ext.ComponentQuery.query("#colStopOptions")[0].setHidden(false);
                //}
            },
            canceledit: function( editor, context, eOpts )
            {
                if (Ext.ComponentQuery.query("#colStopOptions") != null && Ext.ComponentQuery.query("#colStopOptions") != undefined && Ext.ComponentQuery.query("#colStopOptions").length > 0)
                {
                    Ext.ComponentQuery.query("#colStopOptions")[0].setHidden(true);
                }
            },
            edit: function( editor, context, eOpts )
            {
                if (Ext.ComponentQuery.query("#colStopOptions") != null && Ext.ComponentQuery.query("#colStopOptions") != undefined && Ext.ComponentQuery.query("#colStopOptions").length > 0)
                {
                    Ext.ComponentQuery.query("#colStopOptions")[0].setHidden(true);
                }
            }
        }
    
    });


  2. #2
    Sencha User slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,165
    Vote Rating
    255
      0  

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha Premium User
    Join Date
    Jan 2008
    Location
    Levittown, PA
    Posts
    338
    Vote Rating
    2
      0  

    Default

    Is there any update or workaround on this bug? It's still happening in ExtJS 6.5 more than 3 years later.

Tags for this Thread

Posting Permissions

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