I have extensive grip-installation experience from years of both dirt biking and BMX riding. Grip installation is a complicated art. Technique depends on application.
If you don't intend to get into dirt or water, you don't need any sort of glue. You can simply he-man the grips on, 'pop' them on by whacking the end with your palm (so the grip expands from air compression and walks on) or if you have an air compressor with a blowgun you can actually use the blowgun to create a film of air and the grip will slide on like butter due to the air film. If no water or dirt gets underneath, this is fine.
If you expect normal water and/or dirt, you need glue. If water or dirt gets under the grips they spin and that's annoying and/or dangerous. My favorite was always weatherstripping glue...made for that kind of thing and all. The downside is it's totally messy and takes a long time to dry. It also can make the grip fatter. Next up is super-glue. You are going to need a lot, like a bottle of 'medium CA' from the hobby shop. If you don't get the grip slid on before the glue sets, you are screwed. It dries instantly and works good though.
If you are into hardcore dirt biking, glue alone isn't enough. You have to use glue+safety wire; as many circles as you think you need. So water and dirt will get under the grips but hopefully the safety wire stops it from migrating under all the way.