-
6 Jan 2010 5:23 PM #1
Collapsed ContainerPanel doesn't expand
Collapsed ContainerPanel doesn't expand
Hi,
I am having some issues with the Container Panel. If I collapse the panel by calling collapse method, it doesn't expand when I made the call expand. ContainerPanel.isExpanded() method returns false. So what is wrong? If Container Panel is collapsed, it can't be expanded programatically? Manually clicking the button expands the panel, though.
Any help would be appreciated.
Thanks
-
7 Jan 2010 8:44 AM #2
did you try it in a newer version of GXT not in the GXT 1.x ( i assume that you using 1.x because you post in the 1.x category)
This forum needs your help: you got hints from the community and now you have fixed your code? dont just reply with "now its fixed" or "i found the error"! please take the time to post also an detailed answer with the working code.
GreaseMonkey Script for a GXT-only Forum: it hides ExtJs here: New Posts • Search Results • Advanced Search form • Category overview http://www.extjs.com/forum/showthrea...041#post410041
-
7 Jan 2010 8:47 AM #3
Sorry for posting it in GXT 1.x help. Actually I am using GXT 2.0.1 version. Still I see the issue of not expanding the ContentPanel after calling expand method.
-
7 Jan 2010 9:00 AM #4
on my system a small example works.
so it should do this.
can you make a standalone example with is one class with EntryPoint - so everyone can replay your problem.This forum needs your help: you got hints from the community and now you have fixed your code? dont just reply with "now its fixed" or "i found the error"! please take the time to post also an detailed answer with the working code.
GreaseMonkey Script for a GXT-only Forum: it hides ExtJs here: New Posts • Search Results • Advanced Search form • Category overview http://www.extjs.com/forum/showthrea...041#post410041
-
7 Jan 2010 9:08 AM #5
my example:
PHP Code:package com.mycompany.myapplication.client.forumsnippets;
import com.extjs.gxt.ui.client.event.ButtonEvent;
import com.extjs.gxt.ui.client.event.SelectionListener;
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.Html;
import com.extjs.gxt.ui.client.widget.Window;
import com.extjs.gxt.ui.client.widget.button.Button;
import com.extjs.gxt.ui.client.widget.form.FormPanel;
import com.google.gwt.core.client.EntryPoint;
/**
*
* @author arno.nyhm
*/
public class ForumThread425190CollapseContentPanel implements EntryPoint {
public void onModuleLoad() {
new myWindow().show();
}
public class myWindow extends Window {
public myWindow() {
createWindow();
}
private void createWindow() {
setWidth(400);
setHeading("TestWindow");
final ContentPanel contentPanel = new ContentPanel() {
{
setCollapsible(true);
add(new Html("abc"));
}
};
add(contentPanel);
add(new FormPanel() {
{
add(new Button("A", new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
contentPanel.collapse();
}
}));
add(new Button("B", new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
contentPanel.expand();
}
}));
}
});
}
}
}
This forum needs your help: you got hints from the community and now you have fixed your code? dont just reply with "now its fixed" or "i found the error"! please take the time to post also an detailed answer with the working code.
GreaseMonkey Script for a GXT-only Forum: it hides ExtJs here: New Posts • Search Results • Advanced Search form • Category overview http://www.extjs.com/forum/showthrea...041#post410041


Reply With Quote