Disabling autoincrement in AutoFill extra

Disabling autoincrement in AutoFill extra

t0mt0m Posts: 5Questions: 0Answers: 0
edited March 2013 in Plug-ins
1. In *.js file find this pattern - "return a.sStr.replace(e,b+a.sPostFix)"

2. Replace with this one - "return a.sStr.replace(e,a.iStart)"

It will disable autoincrmenet permanently.
In case you are need to disable it only for one/more collumn please refer to AutoFill documentation http://datatables.net/extras/autofill/options (fnStep callback).

Worked for me with AutoFill 1.1.2

Replies

  • t0mt0m Posts: 5Questions: 0Answers: 0
    You also will need to disable parseInt, as leading zeroes will be truncated (from "0001" you will get "1").

    1. In *.j file find this pattern - "a=parseInt(c,10)"
    2. Replace with this one - "a=c"

    Worked for me with AutoFill 1.1.2
  • allanallan Posts: 61,821Questions: 1Answers: 10,127 Site admin
    Thanks for posting this. I think I'll look into making it an option in a future release.

    Allan
  • t0mt0m Posts: 5Questions: 0Answers: 0
    Allan, you are welcome.
    Thank you for this great product!
This discussion has been closed.