Skip to main content

getHeaderFilter()

returns an object of the header filter by column id

getHeaderFilter(colId: Id): HTMLElement | object;

Parameters:

colId: string | number - the id of a column

Returns:

Either an HTML object or an object with Combobox configuration.

Example

var countryFilter = grid.getHeaderFilter("country");// -> returns HTMLElement// <label className="dhx_grid-filter__label dxi dxi-menu-down">...</label>
countryFilter.focus();
// or
var countryFilter = grid.getHeaderFilter("density");// -> returns Combobox// Combobox {_uid: "u1597304021754", config: {…}, events: EventSystem, // data: DataCollection, popup: Popup, …}
countryFilter.blur();

Related sample: Grid. Get Header Filter

Change log:

added in 7.0