Hello,
please provide support for "onError" or something similar for CardImage. If Image.png is not available show NoImage.png.
<img class="" style="" src="@($"https://xyz.blob.core.windows.net/amsmedia/image.png")"
onError="this.src='\NoImage.png'" alt="article photo" />
How can I do the same with CardImage?
<CardImage Src="@image.Uri.AbsoluteUri" onError="???"></CardImage>
Thanks
Hi Dominik,
This feature is not currently available for the CardImage. However, we do consider it a valid and useful enhancement, so I updated the item status. In addition, I added your vote to increase its popularity as we take that into account when prioritizing the features' implementation.
A possible workaround for the time being is to use an <img> tag instead of a <CardImage>, so you can handle its onError. To achieve the same styling, just add the "k-card-image" class to the <img>. This is the class that introduces the styles for the CardImage appearance.
Regards,
Nadezhda Tacheva
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.