in line and bubble together

in line and bubble together

andreavelloneandreavellone Posts: 46Questions: 13Answers: 2

Hi,
I use the inline editing on all the cells, but, I'll need to use the bubble editing only in a specific cell.
I'd like to know if this is possible, and if yes where i can find some example.

Tx a lot
A.

This question has an accepted answers - jump to answer

Answers

  • StijnQCAStijnQCA Posts: 8Questions: 2Answers: 1

    Something like this?

    columnDefs: {
        target: ?,
        editable: true
    }
    
  • andreavelloneandreavellone Posts: 46Questions: 13Answers: 2

    I solved...maybe :)

         
        $('#example').on( 'click', 'tbody td:not(:first-child,:nth-child(9))', function (e) {
            editor.inline( this, {
                onBlur: 'submit',
                 submit: 'all'
            } );
      } );
    
    
    
    
     $('#example').on('click', 'tbody td:nth-child(9)', function (e) {
            editor.bubble(this);
        });
    

    it's all ok... but when i change the cell with the bubble i get an error 12..

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

    Yes, that is the correct way to do it - use selectors to pick the columns that you want to inline and bubble edit as appropriate.

    Do you need so also use submit: 'all' for your bubble edit to stop the system error?

    Allan

  • andreavelloneandreavellone Posts: 46Questions: 13Answers: 2

    that's ok thanks a lot

This discussion has been closed.