template

template – a template or function which are used for initializing the content of the toolbar.

This setting has higher precedence than the buttons toolbar option.

$("#grid").shieldGrid({
    dataSource: {
        data: products,
        schema: {
            fields: {
                id: { path: "ProductID", type: Number},
                name: { path: "ProductName", type: String, nullable: false },
                quantity: { path: "SupplierID", type: Number },
                price: { path: "UnitPrice", type: Number },
                units: { path: "UnitsInStock", type: Number },
                discontinued: { path: "Discontinued", type: Boolean },
                myDate: { path: "d", type: Date }
            }
        }
    },
    toolbar: [
        {
            template: templateFunc,
            position: "bottom"
        }
    ],
    rowHover: false,
    columns: [
        { field: "id" },
        { field: "name", width: "200px" },
        { field: "quantity" },
        { field: "price" },
        { field: "units" },
        { field: "discontinued" },
        { field: "myDate", format: "{0:MM/dd/yyyy}" }
    ],
    editing: {
        enabled: true,
        event: "doubleclick",
        type: "cell"
    }
});

function templateFunc(item) {
    $("<div />").shieldRating({ value: 3 })
        .appendTo(item);
}