@jan_blaha , sorry for the late reply. This issue was because I was using v2.3.0. I upgraded the version and it's working. When I was not able to reproduce on the playground, then I got to know.
Thanks for your time!
Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.