Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autoEdit : true doesn't work in SlickGrid-2.0-frozenRowsAndColumns #82

Open
khanhdang11091981 opened this issue Feb 5, 2015 · 1 comment

Comments

@khanhdang11091981
Copy link

Hello,

I tried to run the "example3-editing" and set the "autoEdit : true" by clicking on the button "AUTO-edit ON", but it doesn't work (still need to double click for editing the field). Below is the link of "example3-editing". Can you please check and advise what is wrong with it?

http://jlynch7.github.io/SlickGrid/examples/example3-editing.html

Thanks,

@helloqhx
Copy link

I have checked the relevant code, and find the following:

if ((activeCell != cell.cell || activeRow != cell.row) && canCellBeActive(cell.row, cell.cell)) {
    if (!getEditorLock().isActive() || getEditorLock().commitCurrentEdit()) {
        if (hasFrozenRows) {
            if (( !( options.frozenBottom ) && ( cell.row >= actualFrozenRow ) )
                            || ( options.frozenBottom && ( cell.row < actualFrozenRow ) )
            ) {
                scrollRowIntoView(cell.row, false);
            }

            setActiveCellInternal(getCellNode(cell.row, cell.cell));
       }
   }
}

So the hasFronzenRows if statement has blocked editing the active cell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants