Hi
Is there any way to kept filters values when the grid is reloaded?
I want to execute loadXMLString keeping filters values and then refresh them with new content of columns
The code could be this
mygrid.loadXMLString(XMLData, calculateFooterValues);
mygrid.refreshFilters()
I see that loadXMLString reload the grid and empty the filters content/values
Is it posible to execute loadXMLString keeping filter controls (text box and combo boxes) content ?
thanks in advance
You can do that with getFilterElement() method:
mygrid.load(url,function(){
var
filter=mygrid.getFilterElement(COLUMN_INDEX)
filter.value=“A”
})<o:p></o:p>
To filter grid by filled value you can add following line
after filter.value=“A”:
mygrid.filterByAll()