-
Notifications
You must be signed in to change notification settings - Fork 2.5k
No way to programmatically unfocus CellNav cells when data and columns change #3815
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
Comments
This should get you what you want |
Unfortunately, this doesn't work. The selected cell still remains selected. |
This is the line creating the problem. https://github.com/angular-ui/ng-grid/blob/master/src/features/cellnav/js/cellnav.js#L940 |
Shift-tabbing at top-left and tabbing at bottom right will now all tabbing out of the grid to the next/previous element. This doesn't fix all the problems with cellnav but it shuld fix this one. Fixes #2339
As you navigate the grid using cell nav the browser should now read out the cell that is currently focused. Fixes angular-ui#3896 Partially angular-ui#3815
As you navigate the grid using cell nav the browser should now read out the cell that is currently focused. Fixes angular-ui#3896 Partially angular-ui#3815
As you navigate the grid using cell nav the browser should now read out the cell that is currently focused. Fixes angular-ui#3896 Partially angular-ui#3815
As you navigate the grid using cell nav the browser should now read out the cell that is currently focused. Fixes angular-ui#3896 Partially angular-ui#3815
This work for me:
|
I made couple functions in cellNav module:
you can get modified code from: https://github.com/andrew2net/ui-grid.git |
Don't know if it is exactly this you are after but it solved my problems :) gridApi.grid.cellNav.clearFocus(); //To get rid of the highlighting
gridApi.grid.cellNav.focusedCells = []; //To clear all focused cells |
Im not sure if there's a way to do this. I update the grid with new data and new columns but the CellNav selection persists even after I call refresh or notifyDataChange with ALL constant.
I tried setting focusedCells = [], but that didnt work. Calling $scope.gridApi.cellNav.scrollToFocus(null, null) also didnt work.
The text was updated successfully, but these errors were encountered: