GridPanel Hide/Show Columns

  1. #1

    GridPanel Hide/Show Columns

    Hi

    In my MVC Application. I have to show or hide some grid panel columns based on button selection. Below mentioned piece of code i used. but it's not working. Still it showing hidden columns.
    In button click event i used this method.

    <ext:Button ID="btnra" runat="server" Text="RA" ToolTip="Routine Analysis" Icon="BulletFeed">
    <DirectEvents>
      <Click OnEvent="RASettings">
    <EventMask ShowMask="true" Msg="Loading" />
    </Click>
    </DirectEvents>
    </ext:Button>
     protected void RASettings(object sender, DirectEventArgs e)
            {
             this.grdMasterView.ColumnModel.SetHidden(2, true);
             this.grdchildview.RefreshView();
                }
    Thanks in advance
  2. #2
    Hi,

    This should work without .RefreshView().

    Here is an example
    https://examples1.ext.net/#/GridPane...Configuration/

    Could you provide a full sample code reproducing the issue?

Similar Threads

  1. [CLOSED] Hide columns item menù on gridpanel header
    By John_Writers in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 20, 2011, 12:54 PM
  2. [CLOSED] [1.0] GridPanel Group Command (Menu Type ) show/hide on demand
    By webclouder in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 10, 2010, 5:04 PM
  3. [CLOSED] Show/hide GridPanel columns during DirectEvent
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 20, 2010, 8:51 PM
  4. [CLOSED] gridpanel show/ hide header based on toolbar button
    By yobnet in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Sep 08, 2010, 12:41 PM
  5. [CLOSED] Show/Hide grid columns
    By GmServizi in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Mar 28, 2010, 6:39 AM

Posting Permissions