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

RadGrid CommandField

1 Answer 213 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dheera
Top achievements
Rank 1
Dheera asked on 07 Jun 2016, 06:45 PM

1) Is there something similar to GridView’s CommandField in Telerik Radgrid? I need to edit fields row by row.

This is how it is done in GridView:

<asp:CommandField ShowDeleteButton="True" />
<asp:CommandField ShowEditButton="True" />

2) I also need to add a custom button for each row in RadGrid. How can this be done?

 

Thanks!

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 08 Jun 2016, 12:42 PM
Hello Dheera,

There is similar functionality available also for RadGrid. In order to define edit and delete columns you can use any of the follwing column types.


The GridEditCommandColumn is intended to trigger editing for the corresponding record. The GridButtonColumn can be configured to handle different commands.

You can use a GridButtonColumn if you would like to add custom button and specify a command for it. For this scenario you can also use GridTemplateColumn and set the controls that will be displayed manually.


Regards,
Viktor Tachev
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Grid
Asked by
Dheera
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or