Conditional editing

Conditional editing

panzrampanzram Posts: 29Questions: 11Answers: 0

I have a table with 2 columns; name and a status. The name is a varchar and the status is an enum; "pending" and "confirmed". I want to be able to edit the name in a modal form, and the status inline. Is this possible somehow?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,744Questions: 1Answers: 10,111 Site admin
    Answer ✓

    Absolutely. For the status you would simply call the inline() method as normal for inline editing. For the main modal form you have two options:

    1. Use hide() inside initEdit
    2. Create a separate Editor instance for the main editing which just has the name field defined.

    Allan

  • panzrampanzram Posts: 29Questions: 11Answers: 0

    Excellent. Thank you, for a great answer and product.

This discussion has been closed.