How to fill in the filter header

Hi,
I construct a grid with several filters (text, select), and it can switch to show results in a dataview. And this time the grid was replaced with dataview. I transfer the records through javascript to the dataview. However, when I want to switch back to grid from dataview, I can use filterBy() method in the loadXML() event to show the correct datasets, but the texts or selection in the filter headers are empty. How can I fill in these infos previously entered?

To fill the value in the header’s filter you may try to use getFilterElement() method:
mygrid.getFilterElement(ind).value=“new_value”

It now works fine! Thank you for ur reply, sematic!