collapseRow

collapseRow(row) - Collapse the specified table row and hides its detail table row:

$("#grid").shieldGrid({
    dataSource: {
        data: [
            { ID: 1, name: "name1" },
            { ID: 2, name: "name2" }
        ]
    },
    detailTemplate: $("#detailTemplate1").html(),
    columns: [
        { field: "ID" },
        { field: "name" }
    ]
});

var grid =$("#grid").swidget();
var rows = $(".sui-expandable").find(".sui-row");
$("#grid2").swidget().collapseRow(rows[0]);