Last Updated: 01 Aug 2022 11:07 by ADMIN
Created on: 25 Jul 2022 13:54
Category: Card
Type: Feature Request
CardImage OnError Handling


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>


1 comment
Nadezhda Tacheva
Posted on: 01 Aug 2022 11:07

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.

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.