getHeaderFilter

returns an object of the header filter by column id

HTMLElement|object getHeaderFilter(string|number colId);

Parameters

colIdstring|numberthe id of a column

Returns

HTMLElement|objectan HTML object or an object with Combobox configuration

Example

var countryFilter = grid.getHeaderFilter("country");
// -> returns HTMLElement
// <label class="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 samples

See also
Change log

added in 7.0

Back to top