larsrc

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • in reply to: Changing cell edit when other cell changes? #93731
    larsrc
    Participant

    I finally figured out a way to do it, with a somewhat different approach. I make the HTML for cell B myself using custom_element, so I can hook in on it changing (it's a select menu). When it changes, I save the data, update the edit type, and re-select the row. It's a little messy, but it works.

    -Lars

    in reply to: Changing cell edit when other cell changes? #93691
    larsrc
    Participant

    Thank you for your answer.

    One problem is that since field B is being edited, I can't get the value of it – as far as I know – since it's been replaced with an edit thingie. I already know the id of field A, that's not a problem. The edittype of field A will need to be changed (between text and a custom dropdown type), and I don't know if a) that can be done while editing, and b) there's something cached for the column that'll prevent it from fully working.

    So you're saying that if I just remove the field A and do setCell, the grid will pick up the fact that the row is being edited and automatically set the cell into edit mode? Must test that.

    -Lars

    larsrc
    Participant

    If you define the HTML yourself, it should be simple enough. Just put them in a little table or something and return the table as the custom element.

    -Lars

Viewing 3 replies - 1 through 3 (of 3 total)

Stay connected with us in your favorite flavor!