-
I want the row editable feature to let only one row get edited at a time. Currently multiple rows can be edited at the same time. Meaning, one could get in the process of editing a row before saving or canceling a previous row edit. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
We have had exactly the same issue today and found that row editing functionality is very basic and limited in DataTable. The only "native" way of achieving single row editing functionality I found was via a
reason for |
Beta Was this translation helpful? Give feedback.
-
How do you do this PrimeVue 4? I'm trying this: <Column
:rowEditor="true"
style="width: 10%; min-width: 8rem"
bodyStyle="text-align:center"
:pt="{
pcRowEditorInit: { disabled: true },
pcRowEditorSave: ({ instance, props, states, context }) => ({ disabled: true })
}"
></Column> but neither one works |
Beta Was this translation helpful? Give feedback.
We have had exactly the same issue today and found that row editing functionality is very basic and limited in DataTable.
What we have opted was for is a custom actions column and being in full control of the look and feel of the action buttons... which means also manually handling the editing events, data updates, etc.
The only "native" way of achieving single row editing functionality I found was via a
pt
prop like so:reason for
[1]
accessor is becauseeditingMeta
weirdly enough is not anArray
asediting…