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

Grid row, always in edit mode

1 Answer 1857 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ivan
Top achievements
Rank 1
Ivan asked on 04 Jul 2018, 08:37 AM

Hello,

 

Is it possible to have only one row in kendo angular grid always in edit mode. What I'm trying to achieve is that, when I bind grid with data, that one particulate row is in edit mode, so the data can be changed and later retrieved for the update. Also it would be nice if it's possible to have only some of the columns in that row editable, like in the attached image.

 

Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Svet
Telerik team
answered on 06 Jul 2018, 06:20 AM
Hello Ivan,

You can put any Grid row in editing mode programmatically via the editRow() method:

https://www.telerik.com/kendo-angular-ui/components/grid/api/GridComponent/#toc-editrow

I can suggest checking out the Grid default editing functionality in various scenarios to gain a better understanding of how Grid editing works and respectively customize it more easily:

https://www.telerik.com/kendo-angular-ui/components/grid/editing/

You can control which Grid columns will be editable via the editable property of the ColumnComponent:

https://www.telerik.com/kendo-angular-ui/components/grid/api/ColumnComponent/#toc-editable

Here is an example of setting the third Grid row in editing mode with only some columns editable:

https://plnkr.co/edit/eMaoeQQqqFz5Zw0cFX6z?p=preview

The following how-to article contains an alternative approach for rendering and binding Grid editors in Cell templates (you can adapt it to create a single formGroup and render the editors in a single row only via some conditional logic):

https://www.telerik.com/kendo-angular-ui/components/grid/how-to/render-editors-in-cell-template/

I hope this helps.

Regards,
Svetlin
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
General Discussions
Asked by
Ivan
Top achievements
Rank 1
Answers by
Svet
Telerik team
Share this question
or