RadzenImage Alternate Image how to show alternate image if source image is not found? #1396

Closed
opened 2026-01-29 17:53:05 +00:00 by claunia · 2 comments
Owner

Originally created by @AliAjami2020 on GitHub (Sep 19, 2024).

how to show alternate image if source image is not found?
< onerror = ""; >
AlternateText shows text if referenced image URL does not exist, but it would be great if we can have alternative image as well.

Originally created by @AliAjami2020 on GitHub (Sep 19, 2024). how to show alternate image if source image is not found? < onerror = ""; > AlternateText shows text if referenced image URL does not exist, but it would be great if we can have **alternative image** as well.
Author
Owner

@enchev commented on GitHub (Sep 19, 2024):

RadzenImage accepts arbitrary attributes including onerror. Use our forum in the future for such questions.

@enchev commented on GitHub (Sep 19, 2024): RadzenImage accepts arbitrary attributes including onerror. Use our forum in the future for such questions.
Author
Owner

@AliAjami2020 commented on GitHub (Sep 19, 2024):

Thank you for comment, I'll join the forum.
I used onerror="this.src='general.jpg';"

@AliAjami2020 commented on GitHub (Sep 19, 2024): Thank you for comment, I'll join the forum. I used onerror="this.src='general.jpg';"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#1396