views:

604

answers:

1

When the user select an item with info (json), the grid renders as expected.

But, when the returned data is null or {"total":0,"Products":null}, the grid keeps the previous selection.

The page is here:

If the returned data is null, I need it to render it empty.

I am loading the grid as below:

    ProductsEditDataStore.baseParams.ProductTypeID =  ProductTypeID;
       ProductsEditDataStore.load({params:{start:0, limit:12}});
+1  A: 

Maybe you should use an empty array instead of null:

{"total":0,"Products":[]}
snw
Thanks it worked.
Natkeeran