I'm trying to hide a NestedList Panel inside a Panel with Flex layout, but I don't know why the NestedList does not refresh its data after it has been hidden.
This is the code in a Button's tap event:
Code:
var COMPRESS = 'Compress';
var EXPAND = 'Expand';
var nestedList = Ext.getCmp('idSemanticList');
if (button.getText() === EXPAND)
{
nestedList.setFlex(0);
button.setText(COMPRESS);
}
else if (button.getText() === COMPRESS)
{
nestedList.setFlex(1);
button.setText(EXPAND);
nestedList.getStore().load();
}
the "getStore().load()" show the wheel and nothing else. The server side does receive the call from the ST2, so I think it's only a problem of refresh or binding.
thanks