Initialize table at a specific row in table data #843
Unanswered
tektoolsapp
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We highlight an edited row with a backgroundColor, but can't find a way to auto scroll to the edited row on initialization.
Using V1...
We can do this is AgGrid with something like this:
const onGridReady = (params) => {
const { api } = params;
if (editedRowId) {
const rowNode = api.getRowNode(editedRowId);
if (rowNode) {
rowNode.setSelected(true); // Optionally, select the row
api.ensureIndexVisible(rowNode.rowIndex);
}
}
localStorage.removeItem('editedCustRowId');
};
Maybe there is a way?
Beta Was this translation helpful? Give feedback.
All reactions