Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Ext User
    Join Date
    Dec 2009
    Posts
    10
    Vote Rating
    0
    pdantuluri is on a distinguished road

      0  

    Default 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

  2. #2
    Ext User
    Join Date
    Sep 2008
    Location
    Germany
    Posts
    961
    Vote Rating
    0
    Arno.Nyhm is on a distinguished road

      0  

    Default


    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

  3. #3
    Ext User
    Join Date
    Dec 2009
    Posts
    10
    Vote Rating
    0
    pdantuluri is on a distinguished road

      0  

    Default


    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.

  4. #4
    Ext User
    Join Date
    Sep 2008
    Location
    Germany
    Posts
    961
    Vote Rating
    0
    Arno.Nyhm is on a distinguished road

      0  

    Default


    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

  5. #5
    Ext User
    Join Date
    Sep 2008
    Location
    Germany
    Posts
    961
    Vote Rating
    0
    Arno.Nyhm is on a distinguished road

      0  

    Default


    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

Thread Participants: 1