I never gave my children the option to walk without holding my hand. They still do most of the time now (and DS is 5 and a half, DD is 3 and a half).
If all else failed, I used a trolley. We stopped using the pram when DD was around 18 months old. They preferred to walk.