Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8056809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:49:54+00:00 2026-06-05T08:49:54+00:00

I have a ListGrid displayed on a Dashboard Layout. In few case I need

  • 0

I have a ListGrid displayed on a Dashboard Layout. In few case I need to show Notes messages that we usually do using SC.say().

But I have designed my own Canvas to display all such messages and I have placed this on the Parent dashboard.

Now when need comes to display message when some action take place on Listgrid component. The window is set to modal so my Notes Canvas displays but is masked with the Dashboard Layout.

I want to display the Canvas without masking ?

How can I achieve this to show the Canvas without Mask and also the ListGrid showing ?

![enter image description here][1]
This is what actually happening as the window is set to isModal(true) and setModalMask(true) and I know its an optional but is required in our project but now i need to just bring the YELLOW canvas message display as normal highlighted and not with the mask as it is showing just now

public class GetMessageDialogBox extends Canvas 
{
    private GetMessageDialogBox(String messageText)
{
    mainLayout = new GetHorizontalLayout("100%", "40", null, 0, 5, null);

    btnClose = new GetImgButton(16, 16, "Red_Square_Close.png");
    btnClose.setVisible(true);
    btnClose.setShowTitle(true);

    btnClose.addClickHandler(new ClickHandler() 
    {           
        @Override
        public void onClick(ClickEvent event) 
        {
            setAnimateTime(1000);
            animateMove(10 , Window.getClientHeight());
            isVisibleMessageStatus = false;
            setVisible(false);
        }
    }); 

    displayLabel = new GetLabel(messageText,"messageLabelDialogText");
    displayLabel.setBackgroundColor("yellow");
    displayLabel.setHeight100();
    displayLabel.setWidth100();
    displayLabel.setValign(VerticalAlignment.CENTER);
    mainLayout.addMember(new Canvas(){{
        setWidth("50%");
    }});
    mainLayout.addMember(displayLabel);
    mainLayout.addMember(new Canvas(){{  
        setWidth("20%");
    }});
    mainLayout.addMember(btnClose);

    setParentElement(StaticInfo.mainDashboardLayout);
    setVisible(true);
    setHeight(40);
    setBackgroundColor("yellow");
    setBorder("1px solid black");
    setLeft(10);  
    setTop(Window.getClientHeight()-40);
    setShowShadow(true);
    setShadowOffset(5);
    setShadowSoftness(5);
    setAnimateTime(100);
    timer.schedule(5000);
    addChild(mainLayout);
    customMask.show();
    bringToFront();
    show(); 
}
}

Now this Message component is called in a presenter file.

customMask.show();
winLoadList.bringToFront();
winLoadList.show();

The above code is used for List Grid as I need to show is unmask but now when I call the Message component as I also need the Message Component to be shown unmasked with the following code it but all three browsers gives different o/p.

customMask.show();
GetMessageDialogBox.getInstance(messages.LoadPresenter_NoRecordSelected()).bringToFront();
GetMessageDialogBox.getInstance(messages.LoadPresenter_NoRecordSelected()).show();
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T08:49:55+00:00Added an answer on June 5, 2026 at 8:49 am

    You have many ways of achieving that.

    I think the most easy one is trying to call bringToFront() on your yellow canvas.

    This small piece of code work, however, when you move the window, the Yellow canvas goes behind :

    Window window = new Window();
    window.setIsModal(true);
    window.setWidth(800);
    window.setHeight(500);
    window.setAutoCenter(true);
    window.setShowModalMask(true);
    
    window.show();
    
    final HLayout message = new HLayout();
    message.setWidth(400);
    message.setHeight(30);
    message.addMember(new Label("hey you"));
    
    message.setBackgroundColor("yellow");
    
    message.bringToFront();
    message.show();
    

    Despite of using setModal(true), you do your own modal mask and so, you can handle everything (maybe there is some better solution).

    Code :

    public class BusyMask extends VLayout
    {
        public BusyMask()
        {
        RootPanel.get().add(this);
        hide();
        setOpacity(50);
        setBackgroundColor("#000000");
        setPositionAndSizes();
        this.getParentElement().addResizedHandler(
            new ResizedHandler()
                {
    
                    @Override
                    public void onResized(ResizedEvent event)
                    {
                        setPositionAndSizes();
    
                    }
                });
        }
    
    @Override
    public void show()
    {
        this.bringToFront();
        super.show();
    }
    
    @Override
    public void hide()
    {
        super.hide();
    }
    
    protected void setPositionAndSizes()
    {
        setWidth100();
        setHeight100();
    
        setLeft(0);
        setTop(0);
    }
    }
    

    You use that in your ListGrid show method, when displaying it :

    busyMask.show();
    bringToFront();
    super.show();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I have a listgrid in smartgwt and I need to have a button
I have noticed after some research that smartGWT don't support pagination in the ListGrid
Have a network location that shows paths in the 8.3 short format. I need
Have an app that can use tts to read text messages. It can also
Using SmartClient : I have a VLayout composed of a DetailViewer (that monitors selection
I am using SmartGWT and it's ListGrid. Is it possible to have different ListGridFieldType's
Have some text files that I need to break out the individual words. But
Have a SomeLib.pro file that contains: CONFIG += debug TEMPLATE = lib TARGET =
Have a matrix report now that has Position, Hours and Wages for a location
Have you ever had to justify the choice over using .NET instead of Java

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.