locked
Retrieving Records from a Subgrid RRS feed

  • Question

  • How do I retrieve every record within a subgrid using JavaScript? I've looked around and none of the resources I found had any working solution; all the methods seem to be outdated.

    I forgot to mention that I am on UR16. Just in case that is relevant.


    • Edited by dalawh Monday, March 31, 2014 4:15 PM typo
    Monday, March 31, 2014 4:10 PM

All replies

  • function RetrieveSubGridRecords() {
        if (document.getElementById("SubGridName")) {
            var grid = document.getElementById("SubGridName").control;
            for (var rowNo = 0; rowNo < grid.GetRecordsFromInnerGrid().length; rowNo++)
                for (var cellNo = 0; cellNo < grid.GetRecordsFromInnerGrid()[rowNo][3].cells.length; cellNo++)
                    alert(grid.GetRecordsFromInnerGrid()[rowNo][3].cells[cellNo].outerText);
        }
        else {
            setTimeout("RetrieveSubGridRecords();", 2500);
        }

    }

    once check with this script

    hope it helpful

    Thursday, April 3, 2014 9:01 AM