Skip to content

Adding rows in angular data grid, how to choose what column gets focused when entering edit mode? #12500

Answered by georgianastasov
Ugla-Bugla asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Ugla-Bugla,

I have been looking into your question and in order to achieve these requirements, what I suggest as an approach is to make all columns before the one from which you want to start editing and adding a row non-editable with editable property of igx-column component set to false.

<igx-column
      field="ReorderLevel"
      header="ReorderLever"
      dataType="number"
      [editable]="false"
></igx-column>

Thus, when adding or editing a row, it will start from the first column that is editable.

After that you will handle the rowEditEnter and rowEditExit events. When editing or adding a row and when the rowEditEnter event is fired, you will set those columns that are non-e…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Ugla-Bugla
Comment options

Answer selected by kacheshmarova
Comment options

You must be logged in to vote
1 reply
@georgianastasov
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants