Filterby with Load by xml doesn't work

Hello,

I have used the setence filterBy() in grid loaded with addrow(). And that order (filterby) works perfectly.

The problem is if the load is using xml like mygrid.load(url); The function filterby() doesn’t work.

How can it work with xml load?

Thanks.

Check if you call filterBy() method after all rows are loaded:

load(url,function(){ grid.filterBy(... })

Thank you very much, that is the solution. I put the sentence filterby after load.

Thanks, I also have same problem loading CSV solving by this method. like
mygrid.loadCSVFile(“location.csv”, function(){
apply_filter();
});