Update a datatable row using the rowKey #3383
Unanswered
lg900
asked this question in
PrimeFaces
Replies: 1 comment 2 replies
-
You can use <p:commandButton ... update="@form:visitTable:@row(#{rowIdx})" /> See the docs: https://primefaces.github.io/primefaces/14_0_0/#/core/searchexpression?id=primefaces-additional-keywords |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to ajax update a single datatable row, given the rowKey, when the data changes on the server side. I can already update the whole table, that works no problem, but the table contains lots of data so ajax updating it is quite expensive.
On the client side I can select the relevant tr with this, for example:
$('tr[data-rk="3"]');
Is there a way of doing this on the server with PrimeFaces.current().ajax().update( ... ) ?
Beta Was this translation helpful? Give feedback.
All reactions