updatefromxml and filter in

Hello,

In my onAfterUpdate event of the dataprocessor, i want to upload data like this :

grid._refresh_mode=[true,true,false];
grid.loadXMLString(newRows);

If there’s no filter, everythink is ok, but if there’s a filter, new lines are not added and deleted lines are not remove.

I try to remove the filters like this :

    for (var i=0;i<grid.filters.length;i++){
        switch(grid.filters[i][0].tagName.toLowerCase()){
            case "input":grid.filters[i][0].value="";break;
            case "select":grid.filters[i][0].selectedIndex=0;break;
            case "div":grid.filters[i][0].combo.setComboValue("");break
        }
    }
grid._refresh_mode=[true,true,false];
grid.loadXMLString(newRows);

Wath is wrong ?

Unfortunately it is not available to add/remove data in the filtered mode.
You need to unfilter your grid before updating it’s data

How can i unfilter my grid with programation ?

Ok, i found the tutorial here http://docs.dhtmlx.com/doku.php?id=dhtmlxgrid:filtering