1. #1
    Ext User
    Join Date
    Apr 2008
    Posts
    376
    Vote Rating
    0
    zaccret is on a distinguished road

      0  

    Lightbulb Frequently Asked Questions (FAQ)

    Frequently Asked Questions (FAQ)


    Darell, I think it would be nice to add a FAQ page in the Help Center.

    Here is some questions I often see in the forums :
    • Where can I find any documentation?
      On the download page there is this link -> http://extjs.com/helpcenter/index.jsp
    • How to refresh a tree ?
      Use TreeStore.add(M parent, M item, boolean addChildren), TreeLoader.loadChildren(parent) or TreeLoader.load()
    • Why cannot I only add Fields to a FormPanel ?
      FormPanel has a FormLayout which only renders Fields. If you want to use other widgets, use AdapterField
    • How to handle selection events on a Tree ?
      Use TreeBinder.addSelectionChangedListener(..)
    • How to build a simple Tree with strings ?
      Just manually add the items, using TreeItem.add(TreeItem), starting with tree.getRootItem().
    • I have different behaviours in Internet Explorer and Firefox, is it a Ext GWT bug ?
      First, check that you have the good doctype declaration in your HTML main file : <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
    • How do I explicitly listen for mouse clicks on a widget?
      Code:
      widget.el().addEventsSunk(Event.ONCLICK);
      widget.addListener(Events.OnClick, new Listener<DomEvent>() {
        public void handleEvent(DomEvent be) {
          System.out.println("Clicked!");
        }
      });
      In some cases, you can add a selection listener to a widget instead of listening for mouse clicks.
    • How can I stop an event from continuing (ie beforeXXXX event)?
      Code:
      event.doit=false;
    • How do I stop a window from closing and ask "Are you sure"?
      Use the event.doit=false in a window listener and then add/remove that listener depending on the answer.
    • Can I use GWT widgets in GXT ?
      Yes
    • I've add widgets to a panel, but they don't show up - why?
      Call layout() on the panel.
    • How to create custom components ? You can extend Component, BoxComponent for a sized component, Container for a "layouted" component when you don't want to expose the layout and LayoutContainer for a "layouted" component when you want to expose the layout.

    Please add your suggestions ;-)

  2. #2
    Ext User
    Join Date
    Apr 2008
    Posts
    376
    Vote Rating
    0
    zaccret is on a distinguished road

      0  

    Default


    No suggestion ?

  3. #3
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    3
    gslender is on a distinguished road

      0  

    Default


    where can I find any documentation? On the download page there is this link -> http://extjs.com/helpcenter/index.jsp

    how can I stop an event from continuing (ie beforeXXXX event)? event.doit=false;

    how do I stop a window from closing and ask "Are you sure"? use the event.doit=false in a window listener and then add/remove that listener depending on the answer to are you sure?

    can I use GWT widgets in GXT? yes you can

    I've added widgets to a panel, but they don't show up - why? Call layout() on the panel.

  4. #4
    Ext User
    Join Date
    Apr 2008
    Posts
    376
    Vote Rating
    0
    zaccret is on a distinguished road

      0  

    Default


    I've just add your suggestions

  5. #5
    Ext User
    Join Date
    Apr 2008
    Location
    Lincoln, NE
    Posts
    235
    Vote Rating
    0
    jpnet is an unknown quantity at this point

      0  

    Default


    Can I use GXT widgets in GWT... IE, like have an entire GWT app, and just use the GXT grid?

    I'm assuming the answer is yes, but I'm not positive.

    -JP

  6. #6
    Sencha - GXT Dev Team darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242
    Vote Rating
    2
    darrellmeyer is on a distinguished road

      0  

    Default


    Thanks guys. I have added the questions to the faq in the help center, and added a help file to the download that points to the help center.

    Can I use GXT widgets in GWT... IE, like have an entire GWT app, and just use the GXT grid?
    Yes.

  7. #7
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    3
    gslender is on a distinguished road

      0  

    Default


    Quote Originally Posted by jpnet View Post
    Can I use GXT widgets in GWT... IE, like have an entire GWT app, and just use the GXT grid?

    I'm assuming the answer is yes, but I'm not positive.

    -JP
    How ironic that a question is being asked in the FAQ post that has the answer... oh boy

  8. #8
    Ext User
    Join Date
    Apr 2008
    Location
    Lincoln, NE
    Posts
    235
    Vote Rating
    0
    jpnet is an unknown quantity at this point

      0  

    Default


    No, you misunderstood my question then. I interpreted the FAQ question addressing the issue of having application that is primarily composed of GXT widgets and then using a GWT widget. For example, let's say you want to add a GWT Tree to a GXT ContentPanel. That's how I understood the FAQ question.

    My question was addressing the issue of having an application that is primarily composed of GWT widgets and then using a GXT widget. For example, let's sayou want to add a GXT Grid to a GWT DecoratorPanel.

    Is the difference clear?

    -JP

  9. #9
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    3
    gslender is on a distinguished road

      0  

    Default


    ahhh, sorry seems we both assumed too much ;-)

    anyways, good point - we should probably re-word the question and answer then

  10. #10
    Ext User
    Join Date
    Apr 2008
    Posts
    376
    Vote Rating
    0
    zaccret is on a distinguished road

      0  

    Default


    I've add "How to create custom components ?"

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi