pkvenu
27 Dec 2011, 5:05 PM
I have a controller as shown below:
showMapBasedOnInputLocation: function (options) {
GetData(options.id[0], options.id[1]);
Ext.getCmp('FilterSelect').setOptions([
{ text: 'Availability', value: 'Availability' },
{ text: 'Price', value: 'Price' },
{ text: 'Proximity', value: 'Proximity' }
]);
Ext.getCmp('mytab').setActiveItem(0);
map.graphics.clear();
this.application.viewport.setActiveItem(
App.views.result,
{
type: 'slide',
direction: 'right'
}
);
},
Here i don't want to set the active items if the data in the store is empty.
if(App.stores.ParkingFacility.data.items.length > 0)
{
this.application.viewport.setActiveItem(
App.views.result,
{
type: 'slide',
direction: 'right'
}
);
}
but does not seem to work.
Any suggestion or ideas i could use.
Regards,
Pawan
showMapBasedOnInputLocation: function (options) {
GetData(options.id[0], options.id[1]);
Ext.getCmp('FilterSelect').setOptions([
{ text: 'Availability', value: 'Availability' },
{ text: 'Price', value: 'Price' },
{ text: 'Proximity', value: 'Proximity' }
]);
Ext.getCmp('mytab').setActiveItem(0);
map.graphics.clear();
this.application.viewport.setActiveItem(
App.views.result,
{
type: 'slide',
direction: 'right'
}
);
},
Here i don't want to set the active items if the data in the store is empty.
if(App.stores.ParkingFacility.data.items.length > 0)
{
this.application.viewport.setActiveItem(
App.views.result,
{
type: 'slide',
direction: 'right'
}
);
}
but does not seem to work.
Any suggestion or ideas i could use.
Regards,
Pawan