DrZog
17 Apr 2007, 6:19 AM
When I update a grid using:
ds.reload();
everything works fine as long as the server returns at least one value. When the php script returns a zero result like:
{"allProps":null,"totalCount":"0"}
the grid is not updated to reflect the situation i.e. an empty grid with zero records
This is a problem as I'm using one grid as a pre-filter for a second grid so stale records are left in the second grid if the first grid returns a null result.
Incidentally this seems to be the default behaviour for Jeff Howden's excellent Paged Grid Filter Field, http://extjs.com/forum/showthread.php?t=2758.
Any ideas?
ds.reload();
everything works fine as long as the server returns at least one value. When the php script returns a zero result like:
{"allProps":null,"totalCount":"0"}
the grid is not updated to reflect the situation i.e. an empty grid with zero records
This is a problem as I'm using one grid as a pre-filter for a second grid so stale records are left in the second grid if the first grid returns a null result.
Incidentally this seems to be the default behaviour for Jeff Howden's excellent Paged Grid Filter Field, http://extjs.com/forum/showthread.php?t=2758.
Any ideas?