PDA

View Full Version : GridPanel's 'collapsible' does NOT work



hanliang1990
2 Oct 2011, 5:00 PM
i can't expand my gridpanel which has been collapsed.

when i clicked the collapse toggle Tool, my gridpanel collapsed, howerver, when i clicked it again, it does not work as my expectation. it only remains the line of title.

before
28457
after
28456

code from document:


Ext.define('AM.view.user.List', {
extend:'Ext.grid.Panel',


alias:'widget.userlist',


title:'All Users',


collapsible:true,
store:'Users',


initComponent: function(){


this.columns = [
{header:'name', dataIndex:'name', flex:1},
{header:'Email', dataIndex:'email', flex:1}
];


this.callParent(arguments);


}
});

mitchellsimoens
2 Oct 2011, 9:33 PM
Probably not the answer you want but this is working in 4.0.6.

hanliang1990
3 Oct 2011, 12:32 AM
Probably not the answer you want but this is working in 4.0.6.
Did you mean i can't solve this problem in 4.0.2a?

mitchellsimoens
3 Oct 2011, 4:59 AM
Did you mean i can't solve this problem in 4.0.2a?

I'm not sure what went into fixing it

skirtle
3 Oct 2011, 11:37 AM
@hanliang1990. Your code works for me using 4.0.2.

Which browsers have you tried? Do you get any errors in the console?

Could you provide a complete test case that exhibits the problem?

@mitchellsimoens. When you said it works in 4.0.6 were you implying that it doesn't work in 4.0.2?

mitchellsimoens
3 Oct 2011, 11:38 AM
@mitchellsimoens. When you said it works in 4.0.6 were you implying that it doesn't work in 4.0.2?

Nope... just saying I tried to reproduce on 4.0.6 (knowing that there have been lots of bug fixes in 4.0.4, 4.0.5, and 4.0.6) and couldn't.