Batch Mode Editing Crashing

3 posts, 0 answers
  1. Developer
    Developer avatar
    50 posts
    Member since:
    Apr 2014

    Posted 30 Aug 2018 Link to this post

    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. Developer
    Developer avatar
    50 posts
    Member since:
    Apr 2014

    Posted 03 Sep 2018 in reply to Developer Link to this post

    Anybody?
  3. Eyup
    Admin
    Eyup avatar
    3690 posts

    Posted 04 Sep 2018 Link to this post

    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.
Back to Top