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

Hide GridEditCommandColumn - Show in Edit Mode

1 Answer 147 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 20 Jan 2015, 06:55 PM
Hello,

I have set a grid to go into edit mode when a row is double clicked:
<ClientEvents OnRowDblClick="RowDblClick" />
 
 
function RowDblClick(sender, eventArgs) {
        $find("<%= RadGrid1.MasterTableView.ClientID %>").editItem(eventArgs.get_itemIndexHierarchical());
  }


I want to hide the GridEditCommandColumn until a row is double clicked and put into edit mode. At this point the Save and Cancel items will be shown.
Basically I don't want to see the Edit Icon column, double click is the only way to get into edit mode.

Could you please provide some guidance on how to achieve this?

Thanks.


1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 21 Jan 2015, 09:36 AM
Hello,

In order to achieve the required functionality you can set "AutoGenerateEditColumn="false"" in the RadGrid markup.
I hope this helps.

Regards,
Maria Ilieva
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Kevin
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or