Hi Jagrut! Bus is the best option from Delhi to Dharamshala. You will be able to enjoy the view, and will have a plethora of options as many buses ply on this route. However, if you are someone who has motion sickness, then you should go in for travelling by train.
You can check out these trips for more details on visiting Dharamshala.
Happy Travelling!