Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
115
Editing cell in the row below
posted

I'm trying to make it so that when you press enter to confirm an edit, the cell in the row below goes to edit mode. I've tried to get the cell with getCellByColumn (with rowIndex +1). I seem to get the correct cell, but when I do setEditMode(true) nothing changes. Are there any additional things that need to be set or changed?

Parents
No Data
Reply
  • 2680
    Offline posted

    Hello Jonas,

    Thank you for posting to Infragistics Community!

    I have been looking into your question and I am wondering which particular IgniteUI for Angular is your project targeting? I am asking because according to our Changelog in GitHub here, as of version 12.1.0, the IgxGridCell class replaces the IgxGridCellComponent class.  The setEditMode method is no longer exposed and the IgxGridCell has an editMode property, which can be set to true.

    Additionally, I have created this small sample with version 12.1.6 demonstrating how your requirement can be achieved. In the grid-select-sample component template, is declared a cell editor template for the “Race” column and an event handler for the keydown event of the input control is defined. Alternatively, this other sample demonstrates similar logic executed upon the cellEditDone event of the grid. This solution does not require explicitly declaring cell editor templates to which to hook the handler, however it will result in entering the below cell’s edit mode not only on pressing “Enter”, but on the other commit actions as well – they are listed here.

    Please, test the suggested samples on your side. If this is not an accurate demonstration of what you are trying to achieve, please feel free to modify any of them and send it back to me along with other details.

    Please, keep me posted on your progress.

    Sincerely,
    Bozhidara Pachilova
    Associate Software Developer

Children