Protecting filter value

Hello,

I would like to know if there is any way to programmatically protect or lock down a filter value so that the user cannot change it.

For example, suppose I have a grid column header defined as:

aGrid.setHeader("Description"); aGrid.setColumnIds("description"); aGrid.attachHeader("#text_filter");

… and I then set the filter value and call the filter:

aGrid.getFilterElement(aGrid.getColIndexById("description")).value="Widgets"; aGrid.filterByAll();

Is there a method or property I can then set so the user can’t overwrite the string “Widgets” in the filter window, please?

Thanks!

Ajaxian

Please, try to use the following:
aGrid.getFilterElement(aGrid.getColIndexById(“description”)).disabled=true;

Thank you, sematik, that worked very nicely!

Proving once again why DHX is my favourite JavaScript widget library. It’s so easy and fun to use, and the support is fabulous!