Erase Contents of Grid without running XML request

How can I erase all the rows in a grid without making a roundtrip to the server (I am using XML dataset) to retrieve an empty dataset?
George W.
February 2,
Maybe this:

function clearGrid(){
        obj.setRowProperty("values", []);
Alex (ActiveWidgets)
February 2,
with the release 2 beta 2, it wasn't working.

This works for me :

function clearGrid(grid){
November 17,
You can also clear the entire grid, headers/footers included (it will keep it's size and position etc), using obj.clear(). But if you want to keep the headers/footers then use the above example.
Jim Hunter
November 18,

This topic is archived.

See also:

Back to support forum