The deleterow in the filter problem

In the grid .I input some word and filter gird.


Then select some row and delete(use deleteSelectedrow() or deleteRow()),the selected row will be delete.


But when i filter all data grid,the delete row is still in there.and the status is selected.


why???

you use a datastore ?

i just get the data from php with ajax.like
$.get
(
“ajax.php”,
{t:“load_data”},
function (data){
if (data!=""){
eval (data);
gr.clearAll();
gr.parse(data,“json”);

            }
        }
    )

Read this doc http://docs.dhtmlx.com/grid__filtering.html#addingdeletingrowsinthefilteredgrid

woo,Thank you!

i try the code

grid.filterBy(0,""); //unfilters the grid grid._f_rowsBuffer = null; //clears the cache grid.deleteSelectedRows(); grid.filterByAll();// filters the grid back
when i delete the key word filter all data,the delete row is still in there.and the status is selected.
but if i am not use the “grid.filterByAll()”,the delete row is disappear。it will be right.