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

Batch Edit - Set editor value based on another editor

$
0
0
Hi,

In order to implement the behavior you are looking for it is recommended to use the OnBatchEditClosed event. In its handler you can set the value for the amount cell via the RadGrid API.

The code snippet below illustrates the approach:


function batchEditClosed(sender, args) {
    var masterTableView = sender.get_masterTableView();
    var batchEditingManager = sender.get_batchEditingManager();
    var rowIndex = args.get_row().id.split("__")[1];
    var amountCell;
 
    if (args.get_column().get_uniqueName() == "ChargeId") {
        amountCell = masterTableView.getCellByColumnUniqueName(masterTableView.get_dataItems()[rowIndex], "Amount");
 
        setTimeout(function () {
            batchEditingManager.changeCellValue(amountCell, 40);
        }, 0);
    }
     
}



Regards,
Viktor Tachev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items

Viewing all articles
Browse latest Browse all 94857

Trending Articles