I have an ASP.Net MVC website that uses KnockoutJS and KOGrid in the views. It dynamically renders hyperlinks in one particular column as follows:
cellTemplate: '<a data-bind="text:$parent.entity.sendPort, attr: { href: $parent.entity.sendPortLink}" ></a>'
It's been decided that when clicked, the browser should present the new page in a new tab. So, I've tried adding the "target" attribute as follows:
cellTemplate: '<a data-bind="text:$parent.entity.sendPort, attr: { href: $parent.entity.sendPortLink, target:"_blank"}" ></a>'
This didn't work. The hyperlink was rendered but unable to click.
How can I do this?