Is it possible to do bulk update in editable grid

I am trying to do bulk update i.e. update more than one row at a time using editable grid. Please suggest how to do this

  Discussion posts and replies are publicly visible

  • 0
    Certified Lead Developer

    You can have a button or link (outside of the grid) which, when clicked, sets the values on every row (for a particular column) to some set value, or even a user-entered value.  This is not that difficult, but depends on exactly what you want to do and what you mean - you might need to provide more detail if you want a more specific or useful answer.

  • Hi,

    I am able to acheive that, posting sample code for other people's reference.

    selectionValue: local!selectedIndices,
    /* Flatten the selected values so the result is easier to work with */
    /* when the select/deselect all option is used in an editable grid */
    selectionSaveInto: {
    a!save(
    local!selectedIndices,
    a!flatten(save!value)
    ),
    a!save(
    local!selectedValues,
    local!employeeData.data[local!selectedIndices]
    )
    },
    selectable: true,