Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by YM on Apr 06, 2008 20:05
open dhtmlx forum
Is there a way of initializing the filter?

Hi.

I'm using dhtmlgrid with filter.


The row is added with the filter hung.
After the filter is released, can the row addition be done?

Yours sincerely,
Answer posted by Support on Apr 07, 2008 03:27
If you adds the row while grid in filtered state it may cause not predictable results ( basically row will be added, and will be accessible by API, but may visually disappear after filtering removed )
To add row you need to remove filtering state first
    grid.filterBy(0,"");   // filter by empty value will cause resetting grid to initial state
    grid._srowsCol=null; // drop row cache
    grid.addRow(... // normal add row API will work correctly now