Sep 19, 2012, 5:10 PM
[CLOSED] Javascript - Update a Grid
I posted a question on a TreeGrid to edit at the client - http://forums.ext.net/showthread.php...ing-a-TreeGrid
I have the exact same scenario, but need to do it for a "regular" grid now. This is the original JS that works for the Tree is:
I have the exact same scenario, but need to do it for a "regular" grid now. This is the original JS that works for the Tree is:
/*********************************************************
Document Reinsurer Grid - Update Tracking Dates
setDates(storeColumnName as string)
*********************************************************/
function setDates(storeColumnName, newDate) {
var rootNode = App.reinsurerTree.getRootNode();
rootNode.cascadeBy(function (node) {
//conditions: if the node is not the root, the node is selected and it is not the parent.
if (node !== rootNode) {
if (node.isLeaf() && App.reinsurerTree.selModel.isSelected(node)) {
node.beginEdit();
node.set(storeColumnName, newDate);
node.endEdit();
}
}
});
App.winDates.hide();
}
I just need to know the quivalent for a GridPanel.
Last edited by Daniil; Sep 25, 2012 at 6:56 AM.
Reason: [CLOSED]