cocorossello
13 Jun 2007, 8:05 AM
Hi,
I have some strange problems with the store reload and setting the baseParams.
I set some filters on the beforeLoad event (example)
ds.on('beforeLoad', function(){
//clear baseParams
ds.baseParams={};
if (filter)
ds.baseParams['filter1']= 'someValue';
});
The problem comes when i call a ds.reload() with filter==false .
I'm still getting filter1 with 'someValue' !!!
Also, if i click the wheel thing to refresh in the foot of the grid i don't get filter1.
(both times the beforeLoad event takes place)
Any ideas?
I have some strange problems with the store reload and setting the baseParams.
I set some filters on the beforeLoad event (example)
ds.on('beforeLoad', function(){
//clear baseParams
ds.baseParams={};
if (filter)
ds.baseParams['filter1']= 'someValue';
});
The problem comes when i call a ds.reload() with filter==false .
I'm still getting filter1 with 'someValue' !!!
Also, if i click the wheel thing to refresh in the foot of the grid i don't get filter1.
(both times the beforeLoad event takes place)
Any ideas?