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

with out post back how to invoke batcheditcommand from C#.net

1 Answer 209 Views
Grid
This is a migrated thread and some comments may be shown as answers.
shamim
Top achievements
Rank 1
shamim asked on 05 Mar 2015, 07:53 AM
 used telerik:RadGrid batch editing; to fill this grid I used below syntax:

function GridBind(GridID, GridData) {
var TableView = GridID.get_masterTableView();
TableView.set_dataSource(GridData); TableView.dataBind();
}

To Invoke batcheditcommand I used below syntax. It’s written under non-postback button Javascript event:

function SaveAllChanges(sender,args) {
var batchManager = $find('<%=RadGrid1.ClientID%>').get_batchEditingManager();
var tableViews = [];
tableViews.push($find('<%=RadGrid1.ClientID%>').get_masterTableView());
batchManager.saveTableChanges(tableViews);
}

But unfortunately SaveAllChanges perform a postback and invoke  RadGrid1_BatchEditCommand,my requirement is with out post back ,i want grid batch all change on server side.Any type of suggestion will be acceptable.

1 Answer, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 09 Mar 2015, 12:38 PM
Hello,

If you want to edit the grid contents without making a postback you can create a web service and tie it to our RadClientDataSource. After you enable its batch editing operations you should be able to easily edit the grid contents as per the requirements. An example implementation of this approach can be observed in this online demo.

Regards,
Angel Petrov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
shamim
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Share this question
or