Custom Image Icon in GridCommand

1 Answer 40 Views
Grid
Mohamad Javad
Top achievements
Rank 2
Iron
Iron
Iron
Mohamad Javad asked on 15 Jan 2025, 08:10 PM
Hello
I need to use something like Image Button in Grid that redirects the user to another page by clicking on it.
I used the following code but I can't change its icon and put my own icon.

<GridCommandColumn>
<GridCommandButton Command="MyOwnCommand"
		Icon="@SvgIcon.InfoCircle"
		ThemeColor="@ThemeConstants.Button.ThemeColor.Tertiary"
		OnClick="@MyCustomCommandOnClickHandler">click Me</GridCommandButton>
</GridCommandColumn>
Grid is dynamic and is set with ExpandoObject.
Please help.
Thanks

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 16 Jan 2025, 06:33 PM

Hello Mohamad Javad,

One option is to create custom SVG icons that you use in the same way as the built-in ones. Another option is to simply render the desired custom image inside the Button, together with the text.

Regards,
Dimo
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.

Tags
Grid
Asked by
Mohamad Javad
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Dimo
Telerik team
Share this question
or