How to correctly use Kendo UI template in an anchor tag?

409 Views Asked by At

I'm quite new to Kendo UI template, so please bear with me on this one.

I have an anchor tag which simply render href value using the hash # template syntax of Kendo UI. Below is a snippet of the anchor element tag which throws an exception saying "Invalid template".

<a href="/#=routeContext.TenantName##=routeContext.ResourcePrefix#/Entity/#=rmx_AccrualDetail_ViewModel.dataSource.data()[0].rmx_Entity.rmx_EntityId?form##=Customers#" data-bind="text:dataSource.data()[0].rmx_Entity.rmx_Name" target="_blank"></a>

As an example, I expect the anchor tag would yield the following url: https://localhost:5002/dev/res/Entity/2?form=Customers

I also put \\ to escape the literal equal = sign from the url (form=Customers), but sadly it didn't work.

Any thoughts or suggestions is highly appreciated?

0

There are 0 best solutions below