Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

Batch Editing not working properly

$
0
0

Hi all,

I have codes below at javascript:

var grid = $find("<%=RadGrid1.ClientID %>");

var batchManager1 = grid.get_batchEditingManager();

var hasChanges = batchManager1.hasChanges(grid.get_masterTableView());

if(hasChanges) {

    grid.get_batchEditingManager().saveChanges(grid.get_masterTableView());

}

else{

args.get_

 

 

I have code below at code behind:
protected void RadGrid1_BatchEditCommand(object sender, GridBatchEditingEventArgs e)
{
    foreach (GridBatchEditingCommand command in e.Commands)
    {
        Hashtable newValues = command.NewValues;
        Hashtable oldValues = command.OldValues;
        string newFirstName = newValues["FirstName"].ToString();
    }
}


Viewing all articles
Browse latest Browse all 84751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>