I'm trying to use a ClientTemplate for all of my columns to allow an HTML hover tooltip (using span's title attribute). My ClientTemplate currently is:
This works wonderfully for strings. However, for enums or DateTime, numbers, etc, it doesn't obey the DataAnnotations. It simply does a raw output. How does the Kendo MVC Grid know how to display these fields (without a ClientTemplate, it's perfect without a tooltip)? How can I slightly tweak my ClientTemplate so that it works for all columns/types?
Thanks in advance,
Kyle
string
.Format(
"<span title='#: {0} #'># if ({0} != null) {{# #= {0} # #}}#</span>"
, fieldName)
This works wonderfully for strings. However, for enums or DateTime, numbers, etc, it doesn't obey the DataAnnotations. It simply does a raw output. How does the Kendo MVC Grid know how to display these fields (without a ClientTemplate, it's perfect without a tooltip)? How can I slightly tweak my ClientTemplate so that it works for all columns/types?
Thanks in advance,
Kyle