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 8983007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:43:31+00:00 2026-06-15T20:43:31+00:00

Commonly, I create default GridPanel like new GridPanel(xxx, 480, 200, 1, 5) and I

  • 0

Commonly, I create default GridPanel like new GridPanel(xxx, 480, 200, 1, 5) and I can control which column should be hidden through the first parameter in the constructor of gridpanel.

For example, I create a gridpanel like below and I want to hide the column called description.

public static xxx[] grdFundOutputs = { 
        new xxx("ID", "id", Integer.class, 50),
        new xxx("Name", "name", String.class, 100),
        new xxx("Description", "description", String.class, 150,true),//true represent hidden
        new xxx("Amount", "amount", Float.class, 70),
};
public static GridPanel createGrid(){
    return new GridPanel(grdFundOutputs, 480, 200, 1, 5);
}

note:I used xxx to indicate the classname, because I cannot expose it to the public due to the extension for the gwt-ext by my company.

My requirement is that I didn’t hope user can manually make the hidden column re-shown by clicking the checkbox like following action in image.
enter image description here

How can I implement this requirement, because of gwt-ext , I think it’s hard for me to change the manner of ext-js.I hope to add a function to the class GridPanel so that developer can invoke it to let the checkbox hidden.

Thanks.

  • 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-15T20:43:32+00:00Added an answer on June 15, 2026 at 8:43 pm

    I can add this method to my own code and invoke it before gridpanel’s construction

     private native void unableHiddenReShown()/*-{
            $wnd.Ext.override($wnd.Ext.grid.GridView, {
                           beforeColMenuShow : function(){
                var cm = this.cm,  colCount = cm.getColumnCount();
                this.colMenu.removeAll();
                for(var i = 0; i < colCount; i++){
                    if(cm.config[i].fixed !== true && cm.config[i].hideable !== false && !cm.isHidden(i) //!cm.isHidden(i) was added to solve this problem){
                        this.colMenu.add(new $wnd.Ext.menu.CheckItem({
                            id: "col-"+cm.getColumnId(i),
                            text: cm.getColumnHeader(i),
                            checked: !cm.isHidden(i),
                            hideOnClick:false,
                            disabled: cm.config[i].hideable === false
                        }));
                    }
                }
            }
                });
            }-*/;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am planning to create a Licensing Module which can be commonly used for
What are few commonly used Hidden Lists and Objects that we should know of
I am new to programming on the Android and would like to create an
I am reading about COFF file formats, which is commonly used to create an
I'm trying to create shortcut keys for some commonly used sudo shell commands (for
The STL commonly defines an output iterator like so: template<class Cont> class insert_iterator :
the default and most commonly used behaviour in jquery mobile when clicking on a
I need to know what folder names are commonly used by Version Control systems.
I commonly create apps that require storage of data, and this data is used
The question is quite simple: When I create a new API or Service Class

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.