clearing the grid for OnDemandGrid

Discussion created by dmortenson on Dec 4, 2013
Latest reply on Oct 12, 2015 by csa_egregis
I was using the sample at:

There suppose to be a check if there are valid records, but it doesn't work in this sample.

I had added an input field and button to be able to do a query.  If the query is valid, I get results. If the query produces no results, the grid doesn't clear; it show the records from the previous successful records.

Anyone know how to clear the grid without clearing the query string?

Thank you.