Growing pains are usually a sign of a vitamin or mineral deficiency and can go away with proper supplements.
When my son gets growing pains I immediately give him some trace mineral drops in his water and a vitamin from New Chapter called Bone Strength (which uses plant-sourced whole-food calcium, which will direct the calcium to the bones, not the arteries, it also has Vitamin D3, K1, K2, Magnesium, Silica, Strontium and Vandium (all good bone building blocks). My son's pains will usually go away over night.
This is what I found online for anyone wanting to know more about how bones are laid down. Here's a bone 101: http://www.engin.umich.edu/class/bme456/bonestructure/bon...
"Bone is made of a criss cross collagen matrix. To ''grow'' good bones vitamin C is necessary to make collagen. But to make collagen, you have to have a good food source of gelatin. The collagen forms bonds with calcium. In order to have good calcium bonds, Vitamin K is necessary to pull in the calcium and help bond it to the collagen If children won't eat fresh greens, or other vitamin K foods, then that causes problems pulling the calcium in. If there isn't enough magnesium, then the calcium won't be stable in the bones, and lack of magnesium is usually linked with cramp. Vitamin D, boron and silica are important for structural strength... a lot goes into laying down strong bones, which are also flexible.
With children there is a huge increase in bone growth going on. They need a really good mineral rich, natural diet to help that. The old idea of cod liver oil, and blackstrap molasses was not as stupid as it sounded.
If you google foods looking for the main bone minerals, you should be able to find good selections. If you see that they are primarily foods he doesn't like, then you might have an idea what the problems stems from. If they are foods he does like, then increase them across as broad a range as possible, and hopefully it will work out.
But not much will work out if he's not getting enough vitamin C, because without that, the collagen matrix will be vastly decreased, therefore so will his calcium bonding, and the bones won't form properly. If it gets really bad and really chronic, and an X-ray is taken, you can see ''Harris lines'' on certain bones, which are sort of like ''tide marks'' marking the places where there wasn't enough vitamin C.
Usually, it rights itself if there is a good enough diet. But if there is not, and say, he fractures a bone and on the X-ray they see Harris lines, then they will tell you (if they actually understand what they are seeing, and that is a moot point) that you need to attend to her diet. Most doctors though, don't know the nutritional pathways to strong bones, so they aren't likely to suggest much beyond vitamin C, if that, let alone discuss the whole of it. Anyway, that's only a brief overview. ~more minerals for all!"