getCustomFilterValue

getCustomFilterValue - Fires when the grid needs the custom filter value in order to. This event is used when filtering with custom column filter widget is used into the grid. The value of the widget needs to be assigned to the e.value argument of the event. For example:

$(function () {
    $("#grid").shieldGrid({
        dataSource: {
            data: gridData,
            schema: {
                fields: {
                    id: { type: Number },
                    name: { type: String },
                    company: { type: String },
                    phone: { type: String },
                    age: { type: Number }
                }
            },
        },
        filtering: {
            enabled: true
        },
        paging: true,
        columns: [
            { field: "id", width: "250px", title: "ID", customFilter },
            { field: "name", title: "Person Name", width: "250px" },
            { field: "company", title: "Company" },
            { field: "phone", title: "Phone", width: "250px" },
            { field: "age", title: "Age" }
        ],
        events: {
            getCustomFilterValue : function (e) {
                e.value = $("#test").swidget().value();
            }
        }      
    });
});

function myCustomFilter(cell) {
    $('')
        .appendTo(cell)
        .shieldDropDown({
            dataSource: {
                data: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]
            }
        });
}