dgrid
dgrid copied to clipboard
Row editing plugin
I've received a few requests from people moving from other toolkits to Dojo and dgrid for a row editing plugin.
The idea with a row editing plugin is that you can activate all of the editable fields in a row by selecting or tabbing into that row, and then typically a save button associated with that row.
Another item that was mentioned to me is that editOn is currently pretty limited (at least as documented). For example, can you specify editOn based on row or cell selection or focus, rather than just click or dblclick?
just You can try Editor.html from tests set editOn: dgrid-cellfocusin and about plugin: You can use disabled autosave property with save()/revert() functions
We created something like this for a customer once - it mainly involved taking advantage of canEdit
. But if I recall correctly, the implementation may've had limitations (like we weren't worrying about OnDemandList or something and were rendering everything at once instead).
Meanwhile, given that editOn
can be set to any event, would setting it to dgrid-select
work? (Ignoring complications with multiple/extended select that wouldn't make sense...) What @akaJes said about using dgrid-cellfocusin
should also work, though I'd say the keyboard focus story with editor isn't perfect.