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

Performing original operation when saving batch edits from an external button

1 Answer 56 Views
Grid
This is a migrated thread and some comments may be shown as answers.
jmillar
Top achievements
Rank 1
jmillar asked on 01 Jun 2016, 03:43 PM

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

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 06 Jun 2016, 08:56 AM
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.
Tags
Grid
Asked by
jmillar
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or