Finally got view template working as well as ipgrid