The problem was caused due to my Microsoft exchange setup. When I deleted that account from my mails contacts link under general all the options under passcode came back. I was scared as I had given a long passcode which my son wouldn't remember and then it had grayed out the option not to erase all data on my iPad after 6 unsuccessful attempts. Crazy!!!
Ok guys this is a simple one
I originally downloaded an iphone/ipad profile via work to set up my exchange email account for work.
The profile disabled my passcode lock and auto lock to 1 minute!!!!!!!. Annoying.....
I made a note of all the correct settings within my work email exchange account. I then deleted the work profile which can be found under general settings.
I then manually added my exchange account details ie "not installing an automated profile" with the correct settings i noted earlier which included ie Email address Server Domain etc.The account then reconnected saying verifying account
I then found I was up and running again but with control over my auto lock and password lock.
hope this helps.
My solution is super simple but it's for those who use an iPad personally so I don't have to deal with those that only tech savvy guys understand. I tapped the passcode again and keyed in the set code. After that I was offered the choice to set it back to "off" again, that's it. Sorry for my poor English if it's not clear :) but hope it works for some of you.
Ponchajul has the only solution that worked for me. Here are the steps I used:
1. Settings -> General -> Passcode Lock
2. Select Turn Passcode On
3. Enter passcode (i had to enter the code 3 times)
Passcode will now be enabled as will all the other selections on that page.
Make the desired changes and then turn passcode off (or leave it on, your choice).
If the button "turn passcode off" is greyed out and you don't have any Exchange account configured in your device you surly have a passcode policy still present.
To check the passcode policy go to:
Settings -> General -> Profiles
Here you find the list of the applied policies on your device.
Select the one that have "passcode policy" in the name and click on "remove"
Now you can disable the passcode on the menu:
Settings -> General -> Passcode -> "turn passcode off"
For me works on iPad air