dgrid icon indicating copy to clipboard operation
dgrid copied to clipboard

Row editing plugin

Open dylans opened this issue 9 years ago • 2 comments

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?

dylans avatar Feb 25 '15 12:02 dylans

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

akaJes avatar Feb 25 '15 12:02 akaJes

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.

kfranqueiro avatar Feb 25 '15 13:02 kfranqueiro