Performing original operation when saving batch edits from an external button

2 posts, 0 answers
  1. jmillar
    jmillar avatar
    35 posts
    Member since:
    Oct 2006

    Posted 01 Jun 2016 Link to this post

    Hi there;

    I have the following attached to a toolbar button client side:

    function saveChangesInGrid(sender, args) {
        var grid = $find('<%=gridData.ClientID%>');
        grid.get_batchEditingManager().saveChanges(grid.get_masterTableView());
    }

    I still want the postback for the button to fire, though, as I need to handle other areas of the form server-side.  Any suggestions?

    Thanks,

    Jason

  2. Eyup
    Admin
    Eyup avatar
    3225 posts

    Posted 05 Jun 2016 Link to this post

    Hello Jason,

    You can check the following post for further clarification:
    http://www.telerik.com/forums/radgrid-within-dataform#n5vi8Bq46UaeI2H-tURExg

    The postback to the server should be initiated only by the saveChanges method. Then, you can use the BatchEditCommand event handler provided by RadGrid and call your ServerSideMethod():
    http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/data-editing/edit-mode/batch-editing/server-side-api

    I hope this will prove helpful.

    Regards,
    Eyup
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top