Perry:
Yes, it is possible to change the column to "query" against. You would
just change the schemaItem property of the StringFilter.
For example, given this markup:
<select id="fs" onchange="changeFilter()">
<option value="POID">POID</option>
<option value="Title" selected="true">Title</option>
</select>
You could do something like this:
function changeFilter() {
var s = document.getElementById("fs");
var column= s.options[s.selectedIndex].value;
fnFilter.schemaItem=column
}
I created another demo illustrating this:
http://www.geocities.com/andresm1981/YUI-Grid/DynamicFilterDemo.htm
--- In ydn-javascript%40yahoogroups.com">ydn-javascript
yahoogroups.com, <dutchman_mn
...> wrote:
>
> If you wanted to make the filtered column dynamic (a drop-down list
box of the column headings like "name", "breed", "age"), would it work
without having to repull the information. By this I mean, if I
recreate the filter based on a change in the drop-down, would the
underlying datatable (myDataTable in the example) contain all the
records or just the filtered ones? Would the AutoComplete reflect the
new values (no longer "Oscar" but "German Shepard") ?
>
> Perry Hoekstra
>
.