Control over edit icon pencil

Posted by: eomeroff on 19 February 2018, 9:19 pm EST

    • Post Options:
    • Link

    Posted 19 February 2018, 9:19 pm EST

    Hi,

    When I edit one cell the pencil apears, and if I move to others cell in the same row it remains. But it disapears if I select some other cell in different row.

    How can I keep the pencil in the last edited until I start editing some other cell in different row?

    Thank you,

  • Posted 20 February 2018, 11:20 pm EST

    Hi,

    The behavior, you are observing is buy design and it may not be changed.

    Here is why,

    When a row edit has been started, the collectionView currentEditItem set to the current item and on changing row selection editing gets committed and currentItem gets changed.

    You may keep cell in Edit mode on selection changed same as demo sample:

    http://demos.wijmo.com/5/angular/explorer/explorer/#/grid/editing

    ~Manish

  • Posted 21 February 2018, 7:24 pm EST

    Hi,

    Thanks for the reply.

    I am not sure what to look on the example you have provided.

    Cell goes away from edit mode on selection of the other cells in different rows.

    Thank you,

  • Posted 21 February 2018, 11:57 pm EST

    Hi,

    Yes, In this way, you may retain FlexGrid in edit mode.

    Alternatively, you may use itemFormatter and rowEditEnded event combination. rowEditEnded event to get the last edited row and itemFormatter to show pencil icon for last edited row.

    Please refer to the attached sample created using Angular CLI.

    *Please download required packages using npm install.

    ~Manish

    editIcon.zip

  • Posted 22 February 2018, 7:44 pm EST

    Thanks, it looks promising.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels