Hi
I have a Kendo grid, where one of the columns is a text field, which represents an IP address. I have used a client template to create a hyperlink
This seems to work in principle.
But when a row has no IP address specified, I get a "null" as a string with a hyperlink to 'null'
Strangely, if I use the ClientTemplate format specified by the old MVC extenssions
I get a set of "<>" around the text (which is probably expected !!), but the "null" hyperlink problem disappears.
Any help to get the proper format would be appreciated
Regards
Achilles
I have a Kendo grid, where one of the columns is a text field, which represents an IP address. I have used a client template to create a hyperlink
c.Bound(o => o.AddrIP).Width(120)
.ClientTemplate("<
a
href
=
'http://#= AddrIP #'
target
=
'_blank'
>#= AddrIP #</
a
> ")
This seems to work in principle.
But when a row has no IP address specified, I get a "null" as a string with a hyperlink to 'null'
Strangely, if I use the ClientTemplate format specified by the old MVC extenssions
c.Bound(o => o.AddrIP).Width(120)
.ClientTemplate("<
a
href
=
'http://#= AddrIP #'
target
=
'_blank'
><#= AddrIP #></
a
> ")
I get a set of "<>" around the text (which is probably expected !!), but the "null" hyperlink problem disappears.
Any help to get the proper format would be appreciated
Regards
Achilles