Setting value of a header filter

Hi all,

I have trouble finding a way of setting the value of a header filter.

I have something like:
mygrid.attachHeader("#text_filter,#text_filter");

I would like to be able add text into those filters, is that possible?

something like
mygrid.attachHeader("#text_filter{my_custom_string},#text_filter");

I only found this command:
mygrid.setColumnLabel(2, “Kārlis Gross”, 2); - this changes the whole header, not only the value of the filter.

Thank you.

Please, try to use the getFilterElement method.
For example:
mygrid.getFilterElement(col_index).value=“filter_string”;

Thank you, that worked.