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

Issue with multiselect combobox inside grid in BatchEditing

3 Answers 146 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nilesh Patel
Top achievements
Rank 1
Nilesh Patel asked on 08 Oct 2015, 09:49 AM

Hello,

I am using a Telerik radGrid with batch editing functionality. I have a one grid inside of this grid have a one RadComboBox with multiselect option.

I want to save all multiple selected values of combobox on BatchEditCommand event.

When i try to get selected items but every time i got a 0 count in CheckedItems properties of RadComboBox.

Please find attached demo project.

It would be great if you can help me to solved this issue.

Note: I am using a Telerik.Web.Ui.dll version  2013.2.702.40

Please find attached screenshots which is show you complete scenario. 

Thanks,

Nilesh Patel 

 

3 Answers, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 13 Oct 2015, 05:58 AM
Hi Nilesh,

Extracting the checked values directly from the editor will not work. When batch editing is used the new values should always be obtained using the NewValus collection available in the arguments. Moreover the edit mode is not designed to automatically extract all the values from the combo and set them to the cell. In order to make things work correctly one will have to manually get/set the cell and editor values. The value which is passed to the arguments in the OnBatchEditGetEditorValue event is the one that will be sent subsequently to the server.

Attached to this thread is a small example which illustrates a possible realization. I hope that the provided web site helps you achieve the desired goal.

Regards,
Angel Petrov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Santhosh
Top achievements
Rank 1
Veteran
answered on 03 Sep 2020, 08:19 PM

Hi Petrov,

Thank provided the attached example.

How can we get the RadComboBox selected items value in Batch edit server side event instead of RadComboBox selected items text?

0
Peter Milchev
Telerik team
answered on 07 Sep 2020, 03:15 PM

Hello Santhosh,

Due to the nature of the Batch editing, the items of the editors are not available on the server-side. 

As a workaround, you can use InPlace edit mode instead of Batch edit mode.

If the Batch edit mode is a requirement, you can handle the needed client-side events to serialize a complex object in the events mentioned in your other thread here and then deserialize the object on the server-side:

Regards,
Peter Milchev
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive , special prizes and more, for FREE?! Register now for DevReach 2.0(20).

Tags
Grid
Asked by
Nilesh Patel
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Santhosh
Top achievements
Rank 1
Veteran
Peter Milchev
Telerik team
Share this question
or