Add blank row skipping dialog

Add blank row skipping dialog

sushildsushild Posts: 2Questions: 1Answers: 0

Hello,

Is there a way one can add new blank row and set it on edit mode immediately skipping the modal dialog? Any suggestions for where I can start to do an inline add of a new row. Examples or posts I may have missed on here?

Any help will be greatly appreciated.

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,158Questions: 1Answers: 2,587
    Answer ✓

    Hi @sushild ,

    In order to be able to trigger editing the row needs to already be in the database (since it needs a primary key value). You'll need to use the Editor create() method to create the new row, and then in submitSuccess trigger inline editing on that new row. Not the most trivial thing to do unfortunately.

    Cheers,

    Colin

  • sushildsushild Posts: 2Questions: 1Answers: 0

    Thanks @colin for answering. Any chance of having the ability in future releases?

  • colincolin Posts: 15,158Questions: 1Answers: 2,587

    Hi @sushild ,

    Probably not, tbh, it's an edge case requirement and the development focuses on the core functionality. But, that said, if there's enough demand it could be raised up the pecking order.

    Cheers,

    Colin

  • allanallan Posts: 61,787Questions: 1Answers: 10,115 Site admin

    Long term we plan to add the ability to have multiple fields inline editable at the same time. As part of that work, the ability to add a new row with inline editable fields will likely fall out of it.

    That is something that is a fair bit down the road though - as Colin notes, we are focusing on other aspects at the moment.

    Allan

This discussion has been closed.