0

I would like to have a button that adds an object to the data array of an ng-grid 3.0. When this row is added I would like to enter edit mode of that row. I tried to do this with

gridApi.core.on.rowsRendered

However it calls every time the rows are rendered and not just on change. What is the best approach to this issue?

1 Answer 1

1

Looks like the best solution is to JQuery for the row with a timeout

$timeout(function() {
      $('.ui-grid-row li').first().dblclick(); 
});

Heads up I have a custom template so you will need to adjust your query.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.