ImageUrl change for v4.0

1 Answer 86 Views
Button
cmarsh
Top achievements
Rank 1
Iron
cmarsh asked on 20 Jan 2023, 04:45 PM
I've made the appropriate changes in all cases but this one -- What would be the correct change here? 
<TelerikButton Class="mr-1" ButtonType="@ButtonType.Button" ImageUrl=@GetImageUrl(@name) OnClick="@(()=>AttachmentOnClickHandler(name))">@name</TelerikButton>

cmarsh
Top achievements
Rank 1
Iron
commented on 20 Jan 2023, 08:48 PM

Thank you - we will give this a try. Unfortunately, v4.0 has killed lots of data calls and we can't figure out why:(
Nadezhda Tacheva
Telerik team
commented on 25 Jan 2023, 10:48 AM

Hi Chris,

I am sorry to hear that. I see my colleagues are working on this matter in another ticket of yours.

Hopefully, the issue is resolved soon.

1 Answer, 1 is accepted

Sort by
0
Nadezhda Tacheva
Telerik team
answered on 20 Jan 2023, 05:32 PM

Hello Chris,

As of UI for Blazor 4.0. ImageUrl parameter has been removed. You can now pass the desired image through the Icon parameter.

Example: https://blazorrepl.telerik.com/mnOvcYPr31sl6TLf02.

I hope you will find this information useful. Please let us know if any other questions are raised.

Regards,
Nadezhda Tacheva
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Arash
Top achievements
Rank 1
commented on 17 Feb 2023, 07:59 PM

Hi Nadezhda,

Thank you for the example you provided. But the thing is for a few custom buttons image, it works despite it take times for developers. In real world with a large-scale application, it's a very time-consuming task to modify and test the whole application.

This kind of change is not just renaming a property or method name and it affects all the UI.

Regards,

Nadezhda Tacheva
Telerik team
commented on 22 Feb 2023, 06:44 PM

Hi Arash,

Thank you for your input! I completely agree with you that in a large-scale application that contains multiple buttons with custom images, this may not be a minor task.

Actually, upgrading to a product version that introduces breaking changes may be challenging by itself. Here is why we try to gather the upcoming breaking changes in a single release that takes place only once per year.

While such changes are sometimes hard to migrate to, they allow the overall improvement of the product for its future usage.

Tags
Button
Asked by
cmarsh
Top achievements
Rank 1
Iron
Answers by
Nadezhda Tacheva
Telerik team
Share this question
or