Multiple in Controls in RadGrid Batch Edit

1 Answer 44 Views
Editor Grid Input
Randy
Top achievements
Rank 1
Iron
Randy asked on 11 Jun 2021, 10:14 AM | edited on 11 Jun 2021, 10:16 AM

Hi, I'm trying to create a dynamic rad grid (two columns) for batch edit where one column can have different control based on a condition. Basically, it should look like this once click to edit the cell.

Value 1	Dropdown
Value 2	TextBox
Value 3	DatePicker
Value 4	Checkbox
Value 5	TextBox

Can anyone share a sample code for this? 

Thank You

1 Answer, 1 is accepted

Sort by
0
Doncho
Telerik team
answered on 16 Jun 2021, 09:06 AM

Hi Randy,

I am afraid that the desired behavior goes beyond the capabilities of RadGrid in Batch edit mode.

The Batch editing is an entirely client-side editing mode, designed to increase the user experience and performance when editing the items in RadGrid. When using Batch edit mode, a single editor control is created for each column, and the same control is reused for each cell in the corresponding column. Batch mode is a lot different than the other edit modes exposed by the RadGrid and it comes with its specifics, see RadGrid Batch Editing Templates and Specifics.

When it comes to using server-side editing mode, using a Template Column could provide the flexibility of using different controls for editing different cells from the same column. Still, such functionality would need custom implementation and goes out of the supported features. As an idea of changing the edit controls in the cells, you can check out the following forum answer - https://www.telerik.com/forums/radgrid-multirow-edit-multiple-controls-on-a-column#2994205

I hope you will find this information helpful.

Kind regards,
Doncho
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Editor Grid Input
Asked by
Randy
Top achievements
Rank 1
Iron
Answers by
Doncho
Telerik team
Share this question
or