In order to create a smooth user experience, I would like to achieve the following for a DataGrid component for which direct in-line editor is enabled:
- If the double-clicked column is editable, enter the in-line edit normally.
- If the double-clicked column is not editable, open a separate edit screen.
The reason for doing this is that some column items are complex and require a separate screen to edit properly, while some are simple and can be modified in-line. Currently to achieve this, my user has to click on the “Edit” button for the former, but it would be nice if the same double-lick interaction could be used.
I suppose I need to set the “setItemClickAction”, but I don’t know how to pass which row/column was clicked to the action.
Please kindly advise on the best way to achieve this behaviour.