detailCreated

Fired when a detail item is created. Following arguments are passed:

  • detailCell - corresponding detailed item’s cell
  • item - the item from the data source, corresponding for this row
$("#grid").shieldGrid({
    dataSource: {
        data: [
            { ID: 1, name: "name1" },
            { ID: 2, name: "name2" }
        ]
    },
    columns: [
        { field: "ID" },
        { field: "name" }
    ],
    events: {
        detailCreated: function (e) {
            var detailCell = e.detailCell;
            var item = e.item; 
            // perform actions over the detail cell or item. 
        }
    }
});