Batch Edit Manipulate RadComboBox's in RadGrid on client with Javascript

1 Answer 124 Views
ComboBox Grid
Keith
Top achievements
Rank 1
Iron
Iron
Keith asked on 03 Apr 2023, 01:41 PM

We need to change the selected item of RadComboBox's hosted in RadGrid in BatchEdit mode.

We have a RadGrid with parent child relationships. If the parent row combobox is changed then the change needs to ripple through and change the same value in the child rows.  If a child row is changed the parent may need to be changed as well.

The parent can be set to "Multiple,Detailed,Deferred" and a couple other values. If the parent is changed to Detailed then all the children become detailed. If the parent is Detailed and one of the children is changed to something other than Detailed then the parent must change to Multiple. If all the children changed to the same value then the parent should be changed to that value as well.

We are triggering processing with the grid OnBatchEditSetCellValue client event.  

MasterTableView EditMode="Batch"

BatchEditSetting EditType="Cell"

 

1 Answer, 1 is accepted

Sort by
0
Attila Antal
Telerik team
answered on 05 Apr 2023, 12:53 PM

Hi Keith,

You can use the Grid's and BatchEditing Client-Side APIs to change the value of a cell based on the ComboBox selection. 

The API documentation that you would need can be found here:

There are also a few static functions that might help you while working with Telerik Control on Client-Side, see Telerik Static Client Library

 

Because we found this scenario interesting we have created a Knowledge Base article, see Cascading ComboBoxes with BatchEditing and Master/Detail Hierarchy

 

Please note that this KB serves as an idea, to show how you can work with the Grid and Batch editing on the client side. You can use this as a base and develop it further as needed.

Regards,
Attila Antal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
ComboBox Grid
Asked by
Keith
Top achievements
Rank 1
Iron
Iron
Answers by
Attila Antal
Telerik team
Share this question
or