Changing cell value without editing

Changing cell value without editing

mikeosoftmikeosoft Posts: 40Questions: 14Answers: 2

Hi,
I'm using client side data with no server processing, and with inline editing.
What I want to do is to edit a specific not-focused cell, after editing another.

So when I press enter to submit value on cell A, I want to push a cell change on cell B.
I don't want to call inline on cell B.

I tried using the set function along with submit but it does nothing.
I also tried putting a table draw after the submit, but it didn't help.

Thank you!

This question has accepted answers - jump to:

Answers

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin
    Answer ✓

    Is the cell you want to change in the same row? If so the scope option is what you want here. By default for inline editing only the cell being edited is configured to be editable. If you set scope: 'row' the whole row will be editable via the API (although still only the target cell via the UI).

    Allan

  • mikeosoftmikeosoft Posts: 40Questions: 14Answers: 2

    Hi Allan, Thank you for your fast reply.
    The scope api will definetely help! But there is still the case when I want to change a cell value without prior calling inline.

    You can see it like a table that updates itself without the user needing to do anything. Like a monitoring table if you want. Is it possible?

  • mikeosoftmikeosoft Posts: 40Questions: 14Answers: 2

    But for your question, yes I am in a row scope.
    This is the same scope as the other use case I mentionned.

    I want to be able to update cells from a same row, without calling inline.

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    Answer ✓

    Hi @mikeosoft ,

    Presumably if it's just a monitoring table with updates, the cell updates would be done behind the scenes without any user interaction. In that case, it would be standard DataTables functionality - you can just change the data with cell().data() as shown in this example.

    Cheers,

    Colin

This discussion has been closed.