Results 1 to 8 of 8

Thread: EditorGridPanel: Problem with cell edit

  1. #1
    Sencha User
    Join Date
    Dec 2010
    Posts
    6

    Default EditorGridPanel: Problem with cell edit

    Hi folks,
    I've a problem that I can't resolve because I don't know what generates it.

    My editorgrid has a selModel set as new rowselectionmodel and editClick set to 1.
    When I finish of to edit a cell, and I click on another cell, new cell editor is showed, but after a moment, it goes away, and I must re-select the same cell.

    This happen often, but not always...

    I've try to remove all my code, but the problem remains...

    If I try to debug step by step, the problem doesn't come...
    Can anyone help me? or put me on the right way??

    thanks a lot

  2. #2
    Sencha User Screamy's Avatar
    Join Date
    Jun 2008
    Posts
    244

    Default

    I think it's a problem with your event listener configuration at line 148 of your code sample.

    Oh, wait... you didn't provide any code to look at...


  3. #3
    Sencha User
    Join Date
    Dec 2010
    Posts
    6

    Default

    ehmmmm... ok.... this is the code ^_^
    I've not post it because is very very simple....

    my grid config
    Code:
        var grid = {
            store: dataStore,
            cm: colModel,
            clicksToEdit: 0,
            selModel: new Ext.grid.RowSelectionModel(selModel),  
            enableColumnMove: false,
            loadMask: true,     
            enableColumnMove: true,
            clickToEdit: 1,
            view: new Ext.grid.GridView({
                focusRow : Ext.emptyFn,
                focusCell : Ext.emptyFn,
                ensureVisible: Ext.emptyFn,
                listeners: {
                    refresh: function (view) {}
                }
            }),
            viewConfig: {
                getEditorParent: function() {
                  return this.mainWrap.dom;
                }
            },        
            tbar: new Ext.PagingToolbar({
                store: dataStore,
                displayInfo: true,
                pageSize: MAX_RECORDS_PER_PAGE
            })
        };
    where selModel is this object:
    Code:
        var selModel = {
            singleSelect: true,
            moveEditorOnEnter: false
        };
    and the last step:
    Code:
    var newGrid = new Ext.grid.EditorGridPanel(grid);
    listeners are not used ( i've deleted them.... )

    thanks

  4. #4
    Sencha User Screamy's Avatar
    Join Date
    Jun 2008
    Posts
    244

    Default

    As diagnostic steps:

    • Comment out the custom view declared in your grid config. It's doesn't appear to being doing anything constructive.
    • Declare your RowSelectionModel inline and drop the moveEditorOnEnter attribute:
      Code:
      selModel: new Ext.grid.RowSelectionModel({singleSelect: true})
    • You have enableColumnMove: true and enableColumnMove: false in your grid config. Remove one of them.

  5. #5
    Sencha User
    Join Date
    Dec 2010
    Posts
    6

    Default

    Hi Screamy...

    1. my custom view is very important, I've copied it from this forum. Its is useful for fix a bug. Without it every time that an user click on a row, the h-scrollbar return to first column....

    ok... I go to test your advices... for now thanks!

  6. #6
    Sencha User
    Join Date
    Dec 2010
    Posts
    6

    Default

    nothing....

    the problem remains...
    Is like if there is a sync problem between the end of first editing and the start of second one...

    with cellSelectionModel this doesn't happen...

    strange... very very strange...

    I'll try to discovery some example about cellEditing&RowSelectionModel on the net, in order to see if this is only a my problem....

  7. #7
    Sencha User Screamy's Avatar
    Join Date
    Jun 2008
    Posts
    244

    Default

    Is the issue browser specific? (FF vs. IE)

    What version of Ext are you using?

    Also, can you post the entire, functional block of code (don't remove any listeners or otherwise alter the code)?

  8. #8
    Sencha User
    Join Date
    Dec 2010
    Posts
    6

    Default

    I get this problem on FF, IE 7, IE 8 and chrome....
    so .. evrywhere I've tried

    I use le last version of ext ( I think ) Ext 3.1.0 ....

    mmmm I've no problem to show all code, the problem is that some listeners came from php server, ad I apply them to my grid with the command Ext.applyIf(grid, {listeners: config.listeners});

    so.. I've delete Ext.apply (...) .. . tomorrow when I'll to be in office, I can post rowSelect event ( the only event used ) ...

    Thanks again for your aids...

Similar Threads

  1. [INFOREQ] EditorGridPanel -> IE8 -> edit next cell
    By tobiu in forum Ext 3.x: Bugs
    Replies: 5
    Last Post: 3 Sep 2010, 5:19 AM
  2. edit box appearing outside the cell in EditorGridPanel
    By jeroenooms in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 12 Apr 2010, 12:05 PM
  3. Need help on EditorGridPanel cell edit in Firefox3...
    By psa_extjs in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 3 Dec 2008, 6:29 AM
  4. EditorGridPanel - Enable Single Cell Edit
    By jareddd in forum Ext 1.x: Help & Discussion
    Replies: 5
    Last Post: 22 Jul 2008, 9:04 AM
  5. EditorGridPanel Cell Edit Performance and Issues...
    By crpatrick in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 12 Dec 2007, 2:52 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
  •