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

3.0: Editable grid with dropdown #1547

Closed
PaulL1 opened this issue Sep 18, 2014 · 3 comments
Closed

3.0: Editable grid with dropdown #1547

PaulL1 opened this issue Sep 18, 2014 · 3 comments
Assignees
Milestone

Comments

@PaulL1
Copy link
Contributor

PaulL1 commented Sep 18, 2014

Has anyone done any work on using widgets other than an input inside the editable feature?

I'm having issues with dropdowns within an edit, refer this plunkr: http://plnkr.co/edit/TMB14DquOmXN42V03E6P?p=preview

It brings the dropdown up just fine, but it doesn't go away again when the cell loses focus. I think the problem is perhaps that the blur event is being consumed by the dropdown without being propogated, so there's no "lose focus". But it also doesn't appear to go back to the base cellTemplate if you use the arrow keys.

In the absence of some more elegant solution, is it possible to just end editing on any cells still being edited if/when a new cell is selected? Whether that be receiving focus or actually starting editing?

@swalters
Copy link
Contributor

For every complex widget you need to support, you must create a directive to communicate that the widget has completed editing.

see the uiGridEditor directive in gridEdit.js. you will need something similar for dropdown with needed events wired up to emit:
uiGridEditConstants.events.END_CELL_EDIT
uiGridEditConstants.events.CANCEL_CELL_EDIT

@PaulL1 PaulL1 added this to the 3.0 milestone Sep 18, 2014
@PaulL1 PaulL1 self-assigned this Sep 18, 2014
@PaulL1
Copy link
Contributor Author

PaulL1 commented Sep 18, 2014

Excellent, thanks for that. I'll see if I can add one to the edit feature.

@PaulL1
Copy link
Contributor Author

PaulL1 commented Sep 24, 2014

Will be closed with #1579

@PaulL1 PaulL1 closed this as completed Sep 24, 2014
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