I have a simple grid and I want to have links to files and just show an image based on their file extension. The code below gets me close but the image is static.
The GridImageColumn has a property that would work perfectly DataImageUrlFormatString="IMG/{0}.png" but it does not have DataNavigateUrlFormatString :(
How can I do this?
Thanks
<
telerik:GridHyperLinkColumn
AllowFiltering
=
"False"
DataNavigateUrlFields
=
"Application_Key, File_Title, File_Name, FileExt"
DataNavigateUrlFormatString
=
"att/{0}/{2}"
DataTextField
=
"File_Title"
ImageUrl
=
"img/doc.png"
ShowSortIcon
=
"False"
Target
=
"_blank"
UniqueName
=
"FileCol"
>
</
telerik:GridHyperLinkColumn
>
The GridImageColumn has a property that would work perfectly DataImageUrlFormatString="IMG/{0}.png" but it does not have DataNavigateUrlFormatString :(
How can I do this?
Thanks