This is a migrated thread and some comments may be shown as answers.

Adding a Button Column with a image on it

1 Answer 262 Views
GridView
This is a migrated thread and some comments may be shown as answers.
rajesh
Top achievements
Rank 1
rajesh asked on 18 Jun 2009, 05:22 AM
I have a requirement to add a remove button column, so that i can delete a record rowwise.
So I need a way to customize the Command button in GridViewCommandColumn to add an image to it and change its theme.
Can you help me about this?

1 Answer, 1 is accepted

Sort by
0
Boryana
Telerik team
answered on 19 Jun 2009, 01:10 PM
Hi rajesh,

Thank you for contacting us.

I not sure I fully understand your question. As far as I understand you would like to have a CommandColumn in your RadGridView with Buttons that contain a picture and functionality to delete the current row.

If this is your case, please have a look at the project I have prepared for you. In this example there is a RadGridView bound to a database and a CommandColumn added to the RadGridView. You will also see how to change the picture that appears on the buttons. Please, note that the picture is added as a resource to the project. Further, you will see how to set the alignment of the picture.

Please, note that you can set a theme for the RadGridView and the theme will be automatically applied to the CommandColumn.

A bit off topic: please, ask the purchase holder in your company to add you as a License Developer to your company's purchase. This will give you direct access to our support ticketing system and will allow us to provide you with better support services. More on License Developers you can find here: http://www.telerik.com/account/faqs.aspx


Kind regards,
Boryana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
rajesh
Top achievements
Rank 1
Answers by
Boryana
Telerik team
Share this question
or