Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Need Help!!!About the difference between smartgwt and gwt for component "Window"

    Hi guys:

    I had difficult to set up a smartgwt window as same functionality as
    the one in gwt.
    Basically, I just need to click a button, and a panel pops up,
    meanwhile all other components at background will be greyed out.
    However, when I use the component "window" in smartgwt, it looks like
    does not have that functionality and i still can edit the background
    components.
    I have tried just create the window from gwt, it does not work since
    all the background component created from smartgwt, and the window
    created from gwt even pops up, but u cannnot edit it and even click
    it.

    Easily say, in smartgwt, we can use SC to pop up a msg, confirm, ok......those pop ups, but we cannot create a panel which contains a forum to ask user to input various info.

    Any ideas? or suggestions?

    Many thinks guys!!!

    #2
    Code:
                    window.setIsModal(true);  
                    window.setShowModalMask(true);  
                    window.centerInPage();

    That should allow you to do that.

    Strawman

    Comment


      #3
      thx a lot stawman. it works very well.~

      BTW, do you know anyway like the way we do with SWING to disable editable for certain textfield.

      such as one textfield, we cannot edit it.

      much appreciated

      Comment


        #4
        final TextBox inputItu = new TextBox();
        inputItu.setEnabled(false);

        should do the thing :)

        Comment


          #5
          thanks~ but i am using com.smartgwt.client.widgets.form.fields.****Item, they do not have setEnable method.

          Comment


            #6
            Use setDisabled() or enable()/disable(). Check the javadocs for FormItem.

            Comment

            Working...
            X