Sometimes we have requirements to play with selected sub-grid
records using client side scripting.
Here is same code to read selected sub-grids records :
function ReadSelectedSubGridRecords() {
if (document.getElementById("SubGridName")) {
var grid = document.getElementById("SubGridName").control;
for (var row = 0; row < grid.get_selectedRecords().length; row++)
alert(grid.get_selectedRecords()[row].Name);
}
}
No comments:
Post a Comment