I have a datasource with a handful of fields on it. I need to display records from this datasource in a grid, and allow them to be edited somehow.
* The grid sets autoSaveEdits(false) and pending changes are instead saved via saveAllEdits using an RPCManager queue.
* Changes to any row's data should be saved in the grid 'automatically' (without the user needing to click some save/apply button at each row)
* Only a subset of the fields are to be shown in the grid, but I need to display/edit all of them when some record is selected. For what it's worth, one of the fields contains a chunk of html that I need to edit with a (custom) rich text editor. It's a bit unwieldy to display that editor in a grid cell with the other data.
I've experimented with a couple of approaches, including record expansion, master/detail forms, and record components.
Record components might work, except that I only want the html editor visible on row edit.
Record expansion is okay, except that I can't expand the record until a row has been saved.
AFAICS, master/detail forms are probably where I'll need to end up, except that I can't figure a good way to 'automatically' put a new row into the grid without actually committing the data. Again, I only wanted it queued up in the grid to be saved later.
So what I'm looking for right now is a confirmation/recommendation on which API/approach is the best fit here - if I'm on the right track with master detail forms, I'll follow up with specifics around the problem I'm having with it...
Thanks as always.
* The grid sets autoSaveEdits(false) and pending changes are instead saved via saveAllEdits using an RPCManager queue.
* Changes to any row's data should be saved in the grid 'automatically' (without the user needing to click some save/apply button at each row)
* Only a subset of the fields are to be shown in the grid, but I need to display/edit all of them when some record is selected. For what it's worth, one of the fields contains a chunk of html that I need to edit with a (custom) rich text editor. It's a bit unwieldy to display that editor in a grid cell with the other data.
I've experimented with a couple of approaches, including record expansion, master/detail forms, and record components.
Record components might work, except that I only want the html editor visible on row edit.
Record expansion is okay, except that I can't expand the record until a row has been saved.
AFAICS, master/detail forms are probably where I'll need to end up, except that I can't figure a good way to 'automatically' put a new row into the grid without actually committing the data. Again, I only wanted it queued up in the grid to be saved later.
So what I'm looking for right now is a confirmation/recommendation on which API/approach is the best fit here - if I'm on the right track with master detail forms, I'll follow up with specifics around the problem I'm having with it...
Thanks as always.
Comment