PDA

View Full Version : refresh empty grid



janixams
28 Jun 2008, 1:18 PM
Hi all,
I have a grid and load some data, it's working perfectly. The problem is: When the grid have only one row and I delete this row in the DB, the grid doesn't refresh (the row keeps in there). If I refresh the entire page and and I show the grid, it's have no data (as I need).
Please, somebody help me. :((
Thanks

mjlecomte
29 Jun 2008, 10:02 AM
Check if you send back null or empty array. You need empty array to show no data in grid.

janixams
1 Jul 2008, 7:56 AM
I send back the following:

{"nomb_pot":null,"total":0}

Any other idea?
Thanks for help.

mjlecomte
1 Jul 2008, 11:18 AM
Check if you send back null or empty array. You need empty array to show no data in grid.

Re-read what I said. Null is incorect.