This is a migrated thread and some comments may be shown as answers.

Grid column template for url inclued # in it

1 Answer 15 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bulut
Top achievements
Rank 1
Bulut asked on 11 Nov 2018, 03:32 PM

I have a tab url that i want to give a link in column and my url contains # in it. couldn't figure out how to make it work.

 

url: "/Admin/OfferIndex#offers-received"

template: "#if (OfferCount > 0 && Unread == 0) {# <a href='/Admin/OfferIndex#offers-received' onclick='javascript:OpenWindow(this.href, 800, 600, true); return false;'>#=OfferCount # </a>' #}else if (OfferCount > 0 && Unread > 0) {# <a href='/Admin/OfferIndex#offers-received' onclick='javascript: OpenWindow(this.href, 800, 600, true); return false; '>#=OfferCount # <span style='color:red'>( #=Unread # New )</span></a> #}else{# No Offers #}#",

 

 

 

1 Answer, 1 is accepted

Sort by
0
Bulut
Top achievements
Rank 1
answered on 11 Nov 2018, 03:49 PM
double backslash ("\\") worked.
Tags
Grid
Asked by
Bulut
Top achievements
Rank 1
Answers by
Bulut
Top achievements
Rank 1
Share this question
or