Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to: disable/enable fields in listgrid, while record is being edited

    (SC_SNAPSHOT-2011-03-05/PowerEdition Deployment 2011-03-05)

    Hello, I have a requirement as follows:

    I have a listgrid, and when that is in edit mode, ie. user is editing a (new or existing) record, it can edit a ComboboxItem with two values (say A and B).

    Now, I want to achieve the following:

    If the combobox is changed to A (still editing mode) a different column C is set to disabled (ie. no longer editable), and if it is set to B, it IS editable.

    So I want to prevent the user from filling out a certain column based on the condition of a value in an earlier column. Is this possible?

    The other way would be to put a formatter on column C, and return "" if A is selected, and the actual value of C if B is selected. This is slightly less user-friendly, so I wondered if there is a way of doing things as explained.

    Any thoughts?

    #2
    Yes, see ListGrid.canEditCell().

    Comment

    Working...
    X