Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ed de Koning on Apr 25, 2008 12:05
open dhtmlx forum
Filter and new rows

The problem I'm having is I filter a grid via JS (grid.filterBy(colIdx, value), smart rendering is disabled on grid). In the filtered state, I might add rows (grid.addRow(...)).

When the filter changes, I lose the added rows (appears that added new rows in grid.rowsCol never get to grid.rowsBuffer, if I follow what happens in the black box).

Am I doing something wrong? I would like to preserve new rows when the filter changes.
Answer posted by support on Apr 28, 2008 01:55
>>Am I doing something wrong? I would like to preserve new rows when the filter changes.

In current version of the grid, while in filtering state rows can't be added|deleted ( any such operation will be reverting after disabling filtering )
This is known limitation and it can't be easily changed
We plan to add ability of row manipulation in filtered state in one of next versions