This is a migrated thread and some comments may be shown as answers.
Batch Mode Editing Crashing
2 Answers 2 Views
This is a migrated thread and some comments may be shown as answers.
Developer
Top achievements
Rank 1
Developer asked on 30 Aug 2018, 12:50 PM

Hi,

I have a radgrid which contains a template column.  Within the Edit template is a dropdown control.

I have the edit mode to set to batch.  I then have the client method:

<ClientEvents OnBatchEditCellValueChanged="BatchEditCellValueChanged" />

 

This triggers the following method:

function BatchEditCellValueChanged(sender, parameters) {     sender.get_batchEditingManager().saveAllChanges();}

 

The problem I have is that when a user makes a change to the dropdown list the page freezes and then it crashes.

If I remove the template column, the editing works fine.

What do I need to do in order for this to work?

Thanks.

2 Answers, 1 is accepted

Sort by
0
Developer
Top achievements
Rank 1
answered on 03 Sep 2018, 06:43 AM
Anybody?
0
Eyup
Telerik team
answered on 04 Sep 2018, 08:11 AM
Hello,

Generally, the purpose of Batch editing is to defer the actual updating when the user makes a change and initiate a bulk update of any modification made by them. For this goal, it provides the built-in Save Changes button:
https://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/batch-editing/defaultcs.aspx

Nevertheless, you can try to use the setTimeout method to execute the mentioned saveAllChanges logic:
https://www.w3schools.com/jsref/met_win_settimeout.asp

I hope this will prove helpful.

Regards,
Eyup
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Developer
Top achievements
Rank 1
Answers by
Developer
Top achievements
Rank 1
Eyup
Telerik team
Share this question
or