This is a migrated thread and some comments may be shown as answers.
Kendo Grid Batch Edit with all rows and columns editable
1 Answer 32 Views
This is a migrated thread and some comments may be shown as answers.
Mohammad Faraaz
Top achievements
Rank 1
Mohammad Faraaz asked on 02 Jul 2020, 03:30 PM

Hello,

We have a business requirement where the rows in the grid should all be in editable mode, i.e. show textbox or dropdown etc for each of the columns for each row.

The default implementation only shows a textbox in the field that a user is editing, the others display as labels.

When we tried with custom templates, it seems it does not support 2-way model databinding.

 

Please advise.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 06 Jul 2020, 09:27 AM

Hi Mohammad,

As far as I understand, you need to render an editor for each cell in the Grid. 

Note, that the Grid is designed to be used with one single editor per column and that editor is designed to be used in the Grid's edit mode. Rendering editors directly in the column template is something that is not supported out of the box. However, we have an article that demonstrates a possible approach and you will find a link to it below. The article is regarding Kendo UI for jQuery, but you could use the same approach in UI for APS.NET MVC applications:

https://docs.telerik.com/kendo-ui/knowledge-base/grid-editors-in-column-templates

As rendering editor for each cell could be a huge performance hit I would recommend also take a look at the following article regarding initializing widgets in each cell.

- https://docs.telerik.com/kendo-ui/controls/data-management/grid/performance/common-mistakes#using-editors-or-widgets-in-cells-excessively

I hope you will find the provided information helpful. In case you have additional questions do not hesitate to contact us. 

Regards,
Neli
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Grid
Asked by
Mohammad Faraaz
Top achievements
Rank 1
Answers by
Neli
Telerik team
Share this question
or