Possible to disable the pop-up

Possible to disable the pop-up

Jim3540Jim3540 Posts: 15Questions: 5Answers: 0

Hello, for the autofill option. Is it possible to disable the pop-up?

Reagrds J

Answers

  • sandysandy Posts: 913Questions: 0Answers: 236

    Hi @Jim5340,

    Take a look at the autoFill.alwaysAsk option.

    Thanks,
    Sandy

  • Jim3540Jim3540 Posts: 15Questions: 5Answers: 0

    Thanks! I can not get it to work. I did like this:

    $('#example').DataTable( {
    autoFill: {
    alwaysAsk: false
    },
    autoFill: true
    } );

    I did also an example:
    https://jsfiddle.net/jyvtrbmx/

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin

    Hi,

    You'd need to use:

    $('#example').DataTable( {
      autoFill: {
        alwaysAsk: false
      }
    });
    

    Otherwise it is like saying var x = 1; x = 2; and expecting x to be both 1 and 2.

    However I don't believe that is actually going to answer your original question. The popover will show whenever there is more than one option for the fill.

    Looking at it - I think there is a bug in AutoFill - it gives me options for fill all cells by the first name (if I drag down from there), or vertically, but they are the same thing. Is that what you are seeing as well?

    Allan

  • Jim3540Jim3540 Posts: 15Questions: 5Answers: 0

    Thanks Allan. I found a good example that worked for me:
    http://live.datatables.net/kifufavo/11/edit

Sign In or Register to comment.