Skip to main content

getHeaderFilter()

returns an object of the header filter by column id

getHeaderFilter(colId: Id): HTMLElement | Combobox;

Parameters:

colId: string | number - the id of a column

Returns:

An HTML object or an object with Combobox configuration.

Example

var countryFilter = treegrid.getHeaderFilter("capital");
// -> return HTMLElement
// <label className="dhx_grid-filter__label dxi dxi-magnify">...</label>

countryFilter.focus();

// or

var countryFilter = treegrid.getHeaderFilter("name");
// -> return Combobox
// Combobox {_uid: "u1597322507580", config: {…}, events: EventSystem,
// data: DataCollection, popup: Popup, …}

countryFilter.blur();

Change log:

added in 7.0